fix: same key causes console warning (#153)
This commit is contained in:
parent
f8426529fe
commit
fb070a9843
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue