Commit 0cfd3a9e authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

add key properties

parent e8177400
......@@ -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">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment