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) => {