diff --git a/components/dataView-V2/_components/searchView/index.tsx b/components/dataView-V2/_components/searchView/index.tsx index 22cd59b98aa1d36d4386454c2da60ea04c978607..566cbf32aeb60f775e60c5dcae5d21d70411be98 100644 --- a/components/dataView-V2/_components/searchView/index.tsx +++ b/components/dataView-V2/_components/searchView/index.tsx @@ -73,6 +73,7 @@ const SearchForm = (props: Props) => { return ( { return ( { return ( ) => { pageNum: state.pagination.pageNum, }, (pagination || {})); } - const _afterFetch = ({ dataSource, pagination }: any) => { + const _afterFetch = (params: any) => { + const { dataSource = [], pagination = {} } = params || {} return { pagination: { ...state.pagination, ...(pagination || {}) }, dataSource: Array.isArray(dataSource) ? dataSource.slice() : [],