fix return of add Edge (#155)

This commit is contained in:
nihiyama
2022-05-29 12:59:21 +09:00
committed by Braks
parent d8bae03b8f
commit aea3a158f0

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
}
/**