fix: same key causes console warning (#153)

This commit is contained in:
jsers 2020-05-22 14:28:03 +08:00
parent f8426529fe
commit fb070a9843
1 changed files with 2 additions and 1 deletions

View File

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