diff --git a/packages/core/client/src/schema-component/antd/table-v2/TableBlockDesigner.tsx b/packages/core/client/src/schema-component/antd/table-v2/TableBlockDesigner.tsx index ed9fb6278..95d8dbd70 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/TableBlockDesigner.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/TableBlockDesigner.tsx @@ -43,7 +43,7 @@ export const TableBlockDesigner = () => { const template = useSchemaTemplate(); const collection = useCollection(); const { dragSort, resource } = field.decoratorProps; - const collectionField = getCollectionField(resource); + const collectionField = resource && getCollectionField(resource); const treeCollection = resource?.includes('.') ? getCollection(collectionField?.target)?.tree : !!collection?.tree; const dataScopeSchema = useMemo(() => { return {