fix(edges): remove unnecessary filter from updateEdge util
This commit is contained in:
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user