mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +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 schema = useFieldSchema();
|
||||||
const heightProps = tableHeightProps || blockHeightProps;
|
const heightProps = tableHeightProps || blockHeightProps;
|
||||||
const pageFullScreenHeight = useFullScreenHeight(heightProps);
|
const pageFullScreenHeight = useFullScreenHeight(heightProps);
|
||||||
const { data } = useDataBlockRequest();
|
const { data } = useDataBlockRequest() ?? {};
|
||||||
const { name } = useCollection();
|
const { name } = useCollection();
|
||||||
const { count, pageSize } = (data as any)?.meta || ({} as any);
|
const { count, pageSize } = (data as any)?.meta || ({} as any);
|
||||||
const hasPagination = count > pageSize;
|
const hasPagination = count > pageSize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user