fix dataSource undefined

This commit is contained in:
afc163
2016-03-14 11:19:13 +08:00
parent 71abe49bf1
commit 1929f7db97
+1 -1
View File
@@ -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);