diff --git a/src/components/DataTable/DataTable.js b/src/components/DataTable/DataTable.js index 542080b..9a15473 100644 --- a/src/components/DataTable/DataTable.js +++ b/src/components/DataTable/DataTable.js @@ -66,6 +66,9 @@ class DataTable extends React.Component { ...fetchData, }, }).then((result) => { + if (!this.refs.DataTable) { + return + } const { pagination } = this.state pagination.total = result.total || pagination.total this.setState({ @@ -81,6 +84,7 @@ class DataTable extends React.Component { const { loading, dataSource, pagination } = this.state return (