revert(#181,edges): filter old edge on update

This commit is contained in:
bcakmakoglu
2022-06-10 15:54:40 +02:00
committed by Braks
parent 7fe5171f63
commit 7597c0c542
+1 -1
View File
@@ -186,7 +186,7 @@ export const updateEdge = (oldEdge: Edge, newConnection: Connection, elements: E
}
elements.splice(elements.indexOf(foundEdge), 1, edge)
return elements
return elements.filter((e) => e.id !== oldEdge.id)
}
export const pointToRendererPoint = (