diff --git a/packages/core/client/src/workflow/nodes/index.tsx b/packages/core/client/src/workflow/nodes/index.tsx index c5ab2a534..8e84c1bde 100644 --- a/packages/core/client/src/workflow/nodes/index.tsx +++ b/packages/core/client/src/workflow/nodes/index.tsx @@ -165,14 +165,13 @@ export function NodeDefaultView(props) { const { data, children } = props; const instruction = instructions.get(data.type); const detailText = workflow.executed ? '{{t("View")}}' : '{{t("Configure")}}'; - const typeText = compile(instruction.title); return (
- {typeText} + {compile(instruction.title)}

{data.title} @@ -195,9 +194,9 @@ export function NodeDefaultView(props) { type: 'primary', }, properties: { - drawer: { + [instruction.type]: { type: 'void', - title: typeText, + title: instruction.title, 'x-component': 'Action.Drawer', 'x-decorator': 'Form', 'x-decorator-props': {