From a5ede09a2a1b5025be9d379133b39b4f51e4bc85 Mon Sep 17 00:00:00 2001 From: Katherine Date: Mon, 20 May 2024 15:01:10 +0800 Subject: [PATCH] fix: custom request action should support linkage rule setting (#4410) --- packages/core/client/src/schema-settings/SchemaSettings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-settings/SchemaSettings.tsx b/packages/core/client/src/schema-settings/SchemaSettings.tsx index c23a05de66..76f815750c 100644 --- a/packages/core/client/src/schema-settings/SchemaSettings.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettings.tsx @@ -1263,7 +1263,7 @@ export const SchemaSettingsLinkageRules = function LinkageRules(props) { const localVariables = useLocalVariables(); const record = useRecord(); const { type: formBlockType } = useFormBlockType(); - const type = props?.type || ['Action', 'Action.Link'].includes(fieldSchema['x-component']) ? 'button' : 'field'; + const type = props?.type || fieldSchema?.['x-action'] ? 'button' : 'field'; const gridSchema = findGridSchema(fieldSchema) || fieldSchema; const schema = useMemo( () => ({