From c785beb865ae835ea63a6da8e52747574933cd5b Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Thu, 11 May 2023 13:58:50 +0800 Subject: [PATCH] fix: getNesterAppends filter bug --- packages/core/client/src/block-provider/hooks/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/block-provider/hooks/index.ts b/packages/core/client/src/block-provider/hooks/index.ts index 3d7c96f418..c0859eb06b 100644 --- a/packages/core/client/src/block-provider/hooks/index.ts +++ b/packages/core/client/src/block-provider/hooks/index.ts @@ -1146,7 +1146,7 @@ export const useAssociationNames = (collection) => { }, data); return data.filter((g) => g.length); }; - const data = getAssociationAppends(formSchema); + const data = getAssociationAppends(formSchema)||[]; const associations = data.filter((g) => g.length); const appends = flattenNestedList(associations); return { appends, updateAssociationValues: appends.filter((v) => associationValues.includes(v)) };