fix return of add Edge (#155)

This commit is contained in:
nihiyama
2022-05-29 09:15:09 +02:00
committed by Braks
parent d8bae03b8f
commit aea3a158f0
+1 -1
View File
@@ -155,7 +155,7 @@ export const addEdge = (edgeParams: Edge | Connection, elements: Elements, defau
edge = parseEdge(edge, defaults)
if (connectionExists(edge, elements)) return elements
elements.push(edge)
return [...elements, edge]
return elements
}
/**