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 fa6a66f7e..a05b6fc99 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], );