fix(web): 优化冗余边检测导致分支节点不正常
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user