refactor(core): do not remove orphaned edges from state
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user