From cfa16803901acc5ae5f876bbf389abb20927a0b8 Mon Sep 17 00:00:00 2001 From: Katherine Date: Tue, 3 Sep 2024 17:43:00 +0800 Subject: [PATCH] fix: remove linkageRule for custom request in create form (#5179) --- .../src/client/schemaSettings.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemaSettings.ts b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemaSettings.ts index 88e18b298c..4f6686ea0e 100644 --- a/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemaSettings.ts +++ b/packages/plugins/@nocobase/plugin-action-custom-request/src/client/schemaSettings.ts @@ -17,6 +17,7 @@ import { useCollection, useSchemaToolbar, RefreshDataBlockRequest, + useCollectionRecord, } from '@nocobase/client'; import { CustomRequestACL, CustomRequestSettingsItem } from './components/CustomRequestActionDesigner'; import { useFieldSchema } from '@formily/react'; @@ -45,6 +46,10 @@ export const customizeCustomRequestActionSettings = new SchemaSettings({ collectionName: name, }; }, + useVisible() { + const record = useCollectionRecord(); + return !record?.isNew; + }, }, { name: 'secondConFirm',