From 7f43de4e23efacca9bfe802c807f6fa98fc54eba Mon Sep 17 00:00:00 2001 From: "bai.jingfeng" Date: Tue, 2 Apr 2024 20:50:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=85=8D=E7=BD=AE=E5=AD=97=E6=AE=B5,?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=80=E5=AF=B9=E4=B8=80=E7=9A=84=E5=85=B3?= =?UTF-8?q?=E8=81=94=E8=A1=A8=E7=9A=84=E7=AD=9B=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/client/src/schema-initializer/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/schema-initializer/utils.ts b/packages/core/client/src/schema-initializer/utils.ts index 84e231e30..cec754cc2 100644 --- a/packages/core/client/src/schema-initializer/utils.ts +++ b/packages/core/client/src/schema-initializer/utils.ts @@ -483,7 +483,7 @@ const getItem = ( getCollectionFields, processedCollections: string[], ) => { - if (field.interface === 'm2o') { + if (['m2o', 'obo'].includes(field.interface)) { if (processedCollections.includes(field.target)) return null; const subFields = getCollectionFields(field.target); @@ -535,7 +535,7 @@ const getItem = ( export const useFilterAssociatedFormItemInitializerFields = () => { const { name, fields } = useCollection_deprecated(); const { getCollectionFields } = useCollectionManager_deprecated(); - const interfaces = ['m2o']; + const interfaces = ['m2o', 'obo']; const groups = fields ?.filter((field) => { return interfaces.includes(field.interface);