From ccc238d0d383383e443ffc094de13169868f24af Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Fri, 15 Sep 2023 15:20:20 +0800 Subject: [PATCH] fix: interface group undefined (#2656) --- .../collection-manager/Configuration/CollectionFields.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core/client/src/collection-manager/Configuration/CollectionFields.tsx b/packages/core/client/src/collection-manager/Configuration/CollectionFields.tsx index 1c9105065..3264c0a72 100644 --- a/packages/core/client/src/collection-manager/Configuration/CollectionFields.tsx +++ b/packages/core/client/src/collection-manager/Configuration/CollectionFields.tsx @@ -323,9 +323,9 @@ export const CollectionFields = () => { groups.pf.push(field); } else if (field.interface) { const conf = getInterface(field.interface); - if (conf.group === 'systemInfo') { + if (conf?.group === 'systemInfo') { groups.system.push(field); - } else if (conf.group === 'relation') { + } else if (conf?.group === 'relation') { groups.association.push(field); } else { groups.general.push(field); @@ -405,7 +405,6 @@ export const CollectionFields = () => { ); const addProps = { type: 'primary', database }; const syncProps = { type: 'primary' }; - console.log(dataSource); return (