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'; + }} + /> +