From e82a33f1f772b4bedbc2dff069f1ddc83a7bb1a0 Mon Sep 17 00:00:00 2001 From: Junyi Date: Sat, 23 Mar 2024 10:24:51 +0800 Subject: [PATCH] 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 --- .../collection-manager/hooks/useCollectionManager_deprecated.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/collection-manager/hooks/useCollectionManager_deprecated.ts b/packages/core/client/src/collection-manager/hooks/useCollectionManager_deprecated.ts index fa6a66f7e4..a05b6fc999 100644 --- a/packages/core/client/src/collection-manager/hooks/useCollectionManager_deprecated.ts +++ b/packages/core/client/src/collection-manager/hooks/useCollectionManager_deprecated.ts @@ -108,7 +108,7 @@ export const useCollectionManager_deprecated = (dataSourceName?: string) => { if (!name) return []; const collection = getCm(customDataSource)?.getCollection(name); const res = collection?.getChildrenCollections(isSupportView); - return res; + return res || []; }, [dm, getCm], );