diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx index c3d93feee..369380d90 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx @@ -71,7 +71,7 @@ export function AddButton(props: AddButtonProps) { const instruction = instructions.get(type); if (optionKey) { const { value } = instruction.options?.find((item) => item.key === optionKey) ?? {}; - Object.assign(config, value); + Object.assign(config, typeof value === 'function' ? value() : value); } if (resource) {