From 5562aca456524bd03885ac61eda93a9576f4afbe Mon Sep 17 00:00:00 2001 From: Junyi Date: Fri, 21 Jul 2023 15:19:22 +0700 Subject: [PATCH] fix(plugin-workflow): workflow collections should not appear in blocks (#2290) --- .../workflow/src/client/nodes/manual/WorkflowTodo.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/plugins/workflow/src/client/nodes/manual/WorkflowTodo.tsx b/packages/plugins/workflow/src/client/nodes/manual/WorkflowTodo.tsx index ce7bb28eac..9c48289892 100644 --- a/packages/plugins/workflow/src/client/nodes/manual/WorkflowTodo.tsx +++ b/packages/plugins/workflow/src/client/nodes/manual/WorkflowTodo.tsx @@ -593,16 +593,10 @@ function Decorator({ params = {}, children }) { dragSort: false, }; - [nodeCollection, workflowCollection, todoCollection].forEach((collection) => { - if (!collections.find((item) => item.name === collection.name)) { - collections.push(collection); - } - }); - return ( {children}