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