mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
add key properties
This commit is contained in:
parent
e8177400f7
commit
0cfd3a9ef8
1 changed files with 3 additions and 3 deletions
|
@ -79,12 +79,12 @@ class WidgetTable extends Component {
|
|||
|
||||
render() {
|
||||
var columns = [
|
||||
<TableColumn title="Signal" dataKey="name" width={120} />,
|
||||
<TableColumn title="Value" dataKey="value" modifier={format('.4s')} />
|
||||
<TableColumn key={1} title="Signal" dataKey="name" width={120} />,
|
||||
<TableColumn key={2} title="Value" dataKey="value" modifier={format('.4s')} />
|
||||
];
|
||||
|
||||
if (this.props.widget.showUnit)
|
||||
columns.push(<TableColumn title="Unit" dataKey="unit" />)
|
||||
columns.push(<TableColumn key={3} title="Unit" dataKey="unit" />)
|
||||
|
||||
return (
|
||||
<div className="table-widget">
|
||||
|
|
Loading…
Add table
Reference in a new issue