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 02af62f80..7d06f08eb 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 @@ -715,6 +715,7 @@ function RemoveButton( } function WorkflowSelect({ types, ...props }) { + const { t } = useTranslation(); const index = ArrayTable.useIndex(); const { setValuesIn } = useForm(); const baseCollection = useCollection(); @@ -740,7 +741,12 @@ function WorkflowSelect({ types, ...props }) { return ( ); } @@ -847,11 +854,6 @@ function WorkflowConfig() { 'x-decorator': 'FormItem', 'x-component': 'WorkflowSelect', 'x-component-props': { - placeholder: t('Select workflow', { ns: 'workflow' }), - fieldNames: { - label: 'title', - value: 'key', - }, types: workflowTypes.map((item) => item.value), }, required: true,