fix(edges): remove unnecessary filter from updateEdge util

This commit is contained in:
bcakmakoglu
2022-05-29 09:15:09 +02:00
committed by Braks
parent aea3a158f0
commit ab09a9b786
+2 -1
View File
@@ -185,7 +185,8 @@ export const updateEdge = (oldEdge: Edge, newConnection: Connection, elements: E
targetHandle: newConnection.targetHandle,
}
elements.splice(elements.indexOf(foundEdge), 1, edge)
return elements.filter((e) => e.id !== oldEdge.id)
return elements
}
export const pointToRendererPoint = (