fix: resource undefind (#2589)
This commit is contained in:
parent
aff559882f
commit
ec81db95fc
@ -43,7 +43,7 @@ export const TableBlockDesigner = () => {
|
|||||||
const template = useSchemaTemplate();
|
const template = useSchemaTemplate();
|
||||||
const collection = useCollection();
|
const collection = useCollection();
|
||||||
const { dragSort, resource } = field.decoratorProps;
|
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 treeCollection = resource?.includes('.') ? getCollection(collectionField?.target)?.tree : !!collection?.tree;
|
||||||
const dataScopeSchema = useMemo(() => {
|
const dataScopeSchema = useMemo(() => {
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user