From 22c43628405567e844484b1c488986b1133837d0 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 27 Feb 2023 13:08:41 +0100 Subject: [PATCH] fix(core): remove duplicate connect start/end emits Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/core/src/store/actions.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/core/src/store/actions.ts b/packages/core/src/store/actions.ts index 5bdd817a..475d664d 100644 --- a/packages/core/src/store/actions.ts +++ b/packages/core/src/store/actions.ts @@ -431,13 +431,6 @@ export function useActions(state: State, getters: ComputedGetters): Actions { state.connectionStatus = null if (position) state.connectionPosition = position - - state.hooks.connectStart.trigger({ - event, - nodeId: startHandle.nodeId, - handleId: startHandle.handleId, - handleType: startHandle.type, - }) } const updateConnection: Actions['updateConnection'] = (position, status = null) => { @@ -454,8 +447,6 @@ export function useActions(state: State, getters: ComputedGetters): Actions { } else { state.connectionStartHandle = null } - - state.hooks.connectEnd.trigger(event) } const getNodeRect = (