From d380a223845c377b48a77508e598a8d6bdf9c076 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Thu, 9 Oct 2025 11:51:58 +0800 Subject: [PATCH] fix: Multiple judgments in a workflow cannot be combined with one discriminator #4146 (#4151) --- ui/src/workflow/common/app-node.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/src/workflow/common/app-node.ts b/ui/src/workflow/common/app-node.ts index 6ecab279e..cdede831b 100644 --- a/ui/src/workflow/common/app-node.ts +++ b/ui/src/workflow/common/app-node.ts @@ -386,8 +386,11 @@ class AppNodeModel extends HtmlResize.model { if (targetNode.id == sourceNode.id) { return false } - const up_node_list = this.graphModel.getNodeIncomingNode(targetNode.id) - const is_c = up_node_list.find((up_node) => up_node.id == sourceNode.id) + const up_edge_list = this.graphModel.getNodeIncomingEdge(targetNode.id) + const is_c = up_edge_list.find( + (up_edge) => + up_edge.targetAnchorId == targetAnchor.id && up_edge.sourceAnchorId == sourceAnchor.id, + ) return !is_c && !isLoop(sourceNode.id, targetNode.id) }, })