fix(editor): Fix memory leak in Node Detail View by correctly unsubscribing from event buses (#6021)
This commit is contained in:
@@ -895,18 +895,20 @@ export default mixins(externalHooks, nodeHelpers).extend({
|
||||
onStopExecution() {
|
||||
this.$emit('stopExecution');
|
||||
},
|
||||
openSettings() {
|
||||
this.openPanel = 'settings';
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.populateHiddenIssuesSet();
|
||||
this.setNodeValues();
|
||||
if (this.eventBus) {
|
||||
this.eventBus.on('openSettings', () => {
|
||||
this.openPanel = 'settings';
|
||||
});
|
||||
}
|
||||
this.eventBus?.on('openSettings', this.openSettings);
|
||||
|
||||
this.updateNodeParameterIssues(this.node as INodeUi, this.nodeType);
|
||||
},
|
||||
destroyed() {
|
||||
this.eventBus?.off('openSettings', this.openSettings);
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user