fix(core): remove duplicate connect start/end emits

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-03-02 08:47:38 +01:00
committed by Braks
parent 566ba8e1f6
commit 22c4362840
-9
View File
@@ -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 = (