From 76ddbf2104b26f858b8f5d678cfe7a1299d80ccc Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Mon, 29 May 2023 16:27:23 +0800 Subject: [PATCH] fix: undefined mode (#1950) --- 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 dfea313bb6..ad8246b1e5 100644 --- a/packages/core/client/src/block-provider/hooks/index.ts +++ b/packages/core/client/src/block-provider/hooks/index.ts @@ -1121,7 +1121,7 @@ export const useAssociationNames = (collection) => { if (['Nester', 'SubTable'].includes(s['x-component-props']?.mode)) { associationValues.push(s.name); } - if (s['x-component-props'].mode === 'Nester') { + if (s['x-component-props']?.mode === 'Nester') { return getAssociationAppends(s, buf); } return buf;