From 1929f7db97ea56f96a2bcf1ee081a95ec331fef3 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 14 Mar 2016 11:19:13 +0800 Subject: [PATCH] fix dataSource undefined --- components/table/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/table/index.jsx b/components/table/index.jsx index 72648e2f2..2cb29b1ca 100644 --- a/components/table/index.jsx +++ b/components/table/index.jsx @@ -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);