From 817aea9f054f6d03320b7e35369284ef442d7a64 Mon Sep 17 00:00:00 2001 From: StyleZhang Date: Fri, 15 Mar 2024 11:04:34 +0800 Subject: [PATCH] fix --- web/app/components/workflow/hooks/use-workflow.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/app/components/workflow/hooks/use-workflow.ts b/web/app/components/workflow/hooks/use-workflow.ts index 7c08773ab4..4da89fdf5d 100644 --- a/web/app/components/workflow/hooks/use-workflow.ts +++ b/web/app/components/workflow/hooks/use-workflow.ts @@ -91,6 +91,10 @@ export const useWorkflow = () => { list.push(node) }) + const incomers = getIncomers({ id: nodeId } as Node, nodes, edges) + + list.push(...incomers) + return list.filter((item) => { if (item.data.type === BlockEnum.IfElse) return false