From a3de91b37f3b33ef9d02770854e0b745aa2cc6be Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Thu, 12 Oct 2023 16:45:17 +0800 Subject: [PATCH] fix: assign field modal cantnot open (#2807) --- .../src/schema-component/antd/action/Action.Designer.tsx | 1 + packages/core/client/src/schema-settings/SchemaSettings.tsx | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx b/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx index 216f913a5..03759f926 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx @@ -557,6 +557,7 @@ function AssignedFieldValues() { false}> { await api.resource('uiSchemas').insert({ values: initialSchema }); setSchemaUid(initialSchema['x-uid']); } - - ctx.setVisible(false); setVisible(true); }, [api, ctx, dn, fieldSchema, initialSchema, schemaUid]); const onKeyDown = useCallback((e: React.KeyboardEvent): void => e.stopPropagation(), []); - return ( <>