Fix table columns key, #642

This commit is contained in:
afc163 2015-12-07 16:20:52 +08:00
parent d900bec8b4
commit c79913b896

View File

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