mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-01 19:58:15 +08:00
fix(client): fix undefined context (#4719)
This commit is contained in:
parent
362a83804e
commit
f7f1bdffbb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user