Commit c2068aa9 authored by 陈帅's avatar 陈帅

fix #3035,w ill report an error when data is empty

parent 2f6288b5
......@@ -63,11 +63,8 @@ class StandardTable extends PureComponent {
render() {
const { selectedRowKeys, needTotalList } = this.state;
const {
data: { list, pagination },
rowKey,
...rest
} = this.props;
const { data = {}, rowKey, ...rest } = this.props;
const { list = [], pagination } = data;
const paginationProps = {
showSizeChanger: true,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment