fix(client): fix action designer error occured in custom form (#3801)

* fix(client): fix action designer error occured in custom form

* fix(client): fix from the source
This commit is contained in:
Junyi 2024-03-23 10:24:51 +08:00 committed by GitHub
parent 0d2ed3f8a0
commit e82a33f1f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,7 +108,7 @@ export const useCollectionManager_deprecated = (dataSourceName?: string) => {
if (!name) return []; if (!name) return [];
const collection = getCm(customDataSource)?.getCollection<InheritanceCollectionMixin>(name); const collection = getCm(customDataSource)?.getCollection<InheritanceCollectionMixin>(name);
const res = collection?.getChildrenCollections(isSupportView); const res = collection?.getChildrenCollections(isSupportView);
return res; return res || [];
}, },
[dm, getCm], [dm, getCm],
); );