From 03f845246ee7d0d879e672620cd2fca3f71f3dc3 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Sun, 30 Apr 2023 11:21:24 +0800 Subject: [PATCH] fix: failed to open child collections add new modal (#1780) --- packages/core/client/src/schema-settings/SchemaSettings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/schema-settings/SchemaSettings.tsx b/packages/core/client/src/schema-settings/SchemaSettings.tsx index b25a772ba..7dc370034 100644 --- a/packages/core/client/src/schema-settings/SchemaSettings.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettings.tsx @@ -49,6 +49,7 @@ import { useBlockTemplateContext } from '../schema-templates/BlockTemplate'; import { FormDataTemplates } from './DataTemplates'; import { FormLinkageRules } from './LinkageRules'; import { useLinkageCollectionFieldOptions } from './LinkageRules/action-hooks'; +import { EnableChildCollections } from './EnableChildCollections'; interface SchemaSettingsProps { title?: any; @@ -1061,7 +1062,7 @@ SchemaSettings.DataTemplates = function DataTemplates(props) { ); }; -SchemaSettings.EnableChildCollections = function EnableChildCollections(props) { +SchemaSettings.EnableChildCollections = function EnableChildCollectionsItem(props) { const { collectionName } = props; const fieldSchema = useFieldSchema(); const { dn } = useDesignable(); @@ -1099,7 +1100,6 @@ SchemaSettings.EnableChildCollections = function EnableChildCollections(props) { } as ISchema } onSubmit={(v) => { - console.log(v); const enableChildren = []; for (const item of v.enableChildren.childrenCollections) { enableChildren.push(_.pickBy(item, _.identity));