Skip to content

Commit

Permalink
fix(ui): ensure nodes manager events are not binded twice (#3665)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando authored Apr 19, 2024
1 parent b34856d commit 02f5227
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/dialogs/DialogNodesManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ export default {
},
changeStep(index) {
if (index <= 1) {
this.init(false) // calling it without the bind parameter will not touch events
this.init() // calling it without the bind parameter will not touch events
} else {
this.steps = this.steps.slice(0, index)
}
Expand Down Expand Up @@ -1241,7 +1241,7 @@ export default {
this.commandTimer = null
}
if (bind) {
if (bind && Object.keys(this.bindedSocketEvents).length === 0) {
this.bindEvent(
'grantSecurityClasses',
this.onGrantSecurityCC.bind(this),
Expand Down Expand Up @@ -1291,7 +1291,7 @@ export default {
// done
} else {
if (api === 'replaceFailedNode') {
this.init(false)
this.init()
}
}
},
Expand Down

0 comments on commit 02f5227

Please sign in to comment.