mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
Fix table columns key, #642
This commit is contained in:
parent
d900bec8b4
commit
c79913b896
@ -624,7 +624,7 @@ let AntTable = React.createClass({
|
||||
|
||||
columns = this.renderColumnsDropdown(columns);
|
||||
columns = columns.map((column, i) => {
|
||||
column.key = column.dataIndex || i;
|
||||
column.key = column.key || column.dataIndex || i;
|
||||
return column;
|
||||
});
|
||||
let emptyText;
|
||||
|
Loading…
Reference in New Issue
Block a user