From 77d7ba4dadc1b2c4f2752937463f853953c14811 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 1 Mar 2023 14:04:11 +0100 Subject: [PATCH] fix(core): remove edges before nodes Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/core/src/store/actions.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/src/store/actions.ts b/packages/core/src/store/actions.ts index 536a93c5..cffae6ae 100644 --- a/packages/core/src/store/actions.ts +++ b/packages/core/src/store/actions.ts @@ -400,13 +400,13 @@ export function useActions(state: State, getters: ComputedGetters): Actions { } }) - if (nodeChanges.length) { - state.hooks.nodesChange.trigger(nodeChanges) - } - if (edgeChanges.length) { state.hooks.edgesChange.trigger(edgeChanges) } + + if (nodeChanges.length) { + state.hooks.nodesChange.trigger(nodeChanges) + } } const removeEdges: Actions['removeEdges'] = (edges) => {