mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-25 04:35:50 +10:00
fix dataSource undefined
This commit is contained in:
@@ -531,7 +531,7 @@ let AntTable = React.createClass({
|
||||
|
||||
getLocalData(dataSource) {
|
||||
let state = this.state;
|
||||
let data = dataSource || this.props.dataSource;
|
||||
let data = dataSource || this.props.dataSource || [];
|
||||
// 排序
|
||||
if (state.sortOrder && state.sorter) {
|
||||
data = data.slice(0);
|
||||
|
||||
Reference in New Issue
Block a user