refactor(core): do not remove orphaned edges from state

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-04-03 08:53:33 +02:00
committed by Braks
parent 0f02296fcc
commit 63808e5dd2
-2
View File
@@ -71,8 +71,6 @@ export function useGetters(state: State): ComputedGetters {
target = target ?? getNode.value(e.target)
if (!source || !target) {
state.edges = state.edges.filter((edge) => edge.id !== e.id)
state.hooks.error.trigger(new VueFlowError(ErrorCode.EDGE_ORPHANED, e.id))
return
}