1
0
Fork 0
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:
Steffen Vogel 2018-06-17 23:37:34 +02:00
parent e8177400f7
commit 0cfd3a9ef8

View file

@ -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">