fix(edges): check if connection exists
This commit is contained in:
@@ -135,7 +135,7 @@ const handleEdgeUpdater = (event: MouseEvent, edge: GraphEdge, isSourceHandle: b
|
|||||||
undefined,
|
undefined,
|
||||||
isSourceHandle ? 'target' : 'source',
|
isSourceHandle ? 'target' : 'source',
|
||||||
(connection) => {
|
(connection) => {
|
||||||
if (!connectionExists(edge, getEdges)) emits.edgeUpdate({ edge, connection })
|
if (!connectionExists(connection, getEdges)) emits.edgeUpdate({ edge, connection })
|
||||||
},
|
},
|
||||||
() => emits.edgeUpdateEnd({ event, edge }),
|
() => emits.edgeUpdateEnd({ event, edge }),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user