From 049b2a542f646d53bf581732bfd211a4937bc20b Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Thu, 23 Jan 2025 11:01:32 +0800 Subject: [PATCH] fix: the content is not displayed in the quick add popup (#6123) --- .../components/CreateRecordAction.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/association-field/components/CreateRecordAction.tsx b/packages/core/client/src/schema-component/antd/association-field/components/CreateRecordAction.tsx index 84dce63287..092189cf98 100644 --- a/packages/core/client/src/schema-component/antd/association-field/components/CreateRecordAction.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/components/CreateRecordAction.tsx @@ -14,6 +14,7 @@ import { CreateAction } from '../../../../schema-initializer/components'; import { ActionContextProvider, useActionContext } from '../../action'; import { useAssociationFieldContext, useInsertSchema } from '../hooks'; import schema from '../schema'; +import { TabsContextProvider } from '../../tabs/context'; export const CreateRecordAction = observer( (props) => { @@ -38,14 +39,16 @@ export const CreateRecordAction = observer( addbuttonClick(arg)} /> - { - return s['x-component'] === 'AssociationField.AddNewer'; - }} - /> + + { + return s['x-component'] === 'AssociationField.AddNewer'; + }} + /> +