提交 fb070a98 编写于 作者: J jsers

fix: same key causes console warning (#153)

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