From ad6508d3e0edcd85e3a37e76236981fef19196f0 Mon Sep 17 00:00:00 2001 From: mytharcher Date: Mon, 24 Apr 2023 11:57:58 +0800 Subject: [PATCH] fix(plugin-workflow): fix todo components based on forms --- .../workflow/src/client/nodes/manual/WorkflowTodo.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/plugins/workflow/src/client/nodes/manual/WorkflowTodo.tsx b/packages/plugins/workflow/src/client/nodes/manual/WorkflowTodo.tsx index 81de1d24fd..3b29ea9b61 100644 --- a/packages/plugins/workflow/src/client/nodes/manual/WorkflowTodo.tsx +++ b/packages/plugins/workflow/src/client/nodes/manual/WorkflowTodo.tsx @@ -14,7 +14,7 @@ import { NAMESPACE } from "../../locale"; import { FlowContext, useFlowContext } from "../../FlowContext"; import { instructions, useAvailableUpstreams } from '..'; import { linkNodes } from "../../utils"; -import customForm from "./forms/custom"; +import { manualFormTypes } from "./SchemaConfig"; const nodeCollection = { title: `{{t("Task", { ns: "${NAMESPACE}" })}}`, @@ -507,7 +507,7 @@ function Drawer() { ActionBarProvider, ManualActionStatusProvider, FlowContextProvider, - ...customForm.block.components + ...(Array.from(manualFormTypes.getValues()).reduce((result, item) => Object.assign(result, item.block.components), {})) }} schema={{ type: 'void', @@ -535,7 +535,7 @@ function Drawer() { useSubmit, useFlowRecordFromBlock, useFormBlockProps, - ...customForm.block.scope, + ...(Array.from(manualFormTypes.getValues()).reduce((result, item) => Object.assign(result, item.block.scope), {})), }} />