fix(web): 优化冗余边检测导致分支节点不正常

This commit is contained in:
v-zhangjc9
2025-06-30 11:14:45 +08:00
parent 67f41c08a0
commit d28fbbbba8

View File

@@ -253,11 +253,6 @@ export const checkAddConnection: (connection: Connection, nodes: Node[], edges:
throw hasCycleError()
}
let outgoers = [targetNode, ...getOutgoers(sourceNode, nodes, edges)]
if (outgoers.length > 1 && findIdx(outgoers, (node: Node) => isEqual(node.type, 'end-node')) > -1) {
throw nodeNotOnlyToEndNode()
}
let newEdges = [...clone(edges), {...connection, id: uuid()}]
let {hasAbnormalEdges} = getParallelInfo(nodes, newEdges)
if (hasAbnormalEdges) {