提交 fb070a98 编写于 作者: J jsers

fix: same key causes console warning (#153)

上级 f8426529
......@@ -231,13 +231,14 @@ class Legend extends Component<Props, State> {
});
}
return (
<div className="graph-legend" style={{
...this.props.style,
margin: '0 5px 5px 5px',
}}>
<Table
rowKey={record => record.id}
rowKey={record => `${record.id}-${record.comparison}`}
size="middle"
rowSelection={newRowSelection}
columns={columns}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册