fix(core): remove duplicate connect start/end emits
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -431,13 +431,6 @@ export function useActions(state: State, getters: ComputedGetters): Actions {
|
|||||||
state.connectionStatus = null
|
state.connectionStatus = null
|
||||||
|
|
||||||
if (position) state.connectionPosition = position
|
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) => {
|
const updateConnection: Actions['updateConnection'] = (position, status = null) => {
|
||||||
@@ -454,8 +447,6 @@ export function useActions(state: State, getters: ComputedGetters): Actions {
|
|||||||
} else {
|
} else {
|
||||||
state.connectionStartHandle = null
|
state.connectionStartHandle = null
|
||||||
}
|
}
|
||||||
|
|
||||||
state.hooks.connectEnd.trigger(event)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const getNodeRect = (
|
const getNodeRect = (
|
||||||
|
|||||||
Reference in New Issue
Block a user