From 68009d3d322a5989eb77866a9319e457ed34558b Mon Sep 17 00:00:00 2001 From: Junyi Date: Fri, 6 Oct 2023 10:28:06 +0800 Subject: [PATCH] fix(plugin-workflow): fix context data of form trigger (#2749) --- .../@nocobase/plugin-workflow/src/server/triggers/form.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/form.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/form.ts index ccfccae94..79efd2671 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/form.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/triggers/form.ts @@ -88,7 +88,7 @@ export default class FormTrigger extends Trigger { appends, }); } - this.plugin.trigger(workflow, { data: payload, user: currentUser }); + this.plugin.trigger(workflow, { data: toJSON(payload), user: toJSON(currentUser) }); }); } else { const data = trigger[1] ? get(values, trigger[1]) : values;