Skip to content

Commit d380a22

Browse files
authored
fix: Multiple judgments in a workflow cannot be combined with one discriminator #4146 (#4151)
1 parent 634586f commit d380a22

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ui/src/workflow/common/app-node.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,11 @@ class AppNodeModel extends HtmlResize.model {
386386
if (targetNode.id == sourceNode.id) {
387387
return false
388388
}
389-
const up_node_list = this.graphModel.getNodeIncomingNode(targetNode.id)
390-
const is_c = up_node_list.find((up_node) => up_node.id == sourceNode.id)
389+
const up_edge_list = this.graphModel.getNodeIncomingEdge(targetNode.id)
390+
const is_c = up_edge_list.find(
391+
(up_edge) =>
392+
up_edge.targetAnchorId == targetAnchor.id && up_edge.sourceAnchorId == sourceAnchor.id,
393+
)
391394
return !is_c && !isLoop(sourceNode.id, targetNode.id)
392395
},
393396
})

0 commit comments

Comments
 (0)