fix(client): fix undefined context (#4719)

This commit is contained in:
Junyi 2024-06-20 21:17:10 +08:00 committed by GitHub
parent 362a83804e
commit f7f1bdffbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,7 +91,7 @@ const useTableHeight = () => {
const schema = useFieldSchema();
const heightProps = tableHeightProps || blockHeightProps;
const pageFullScreenHeight = useFullScreenHeight(heightProps);
const { data } = useDataBlockRequest();
const { data } = useDataBlockRequest() ?? {};
const { name } = useCollection();
const { count, pageSize } = (data as any)?.meta || ({} as any);
const hasPagination = count > pageSize;