mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 01:56:16 +00: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