fix(editor): Fix for broken tab navigation (#4881)
🐛 Fixing broken tab navigation
This commit is contained in:
committed by
GitHub
parent
b2aba48dfe
commit
983c5447c5
@@ -349,7 +349,8 @@ export default mixins(
|
|||||||
next();
|
next();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Make sure workflow id is empty when leaving the editor
|
||||||
|
this.workflowsStore.setWorkflowId(PLACEHOLDER_EMPTY_WORKFLOW_ID);
|
||||||
const result = this.uiStore.stateIsDirty;
|
const result = this.uiStore.stateIsDirty;
|
||||||
if (result) {
|
if (result) {
|
||||||
const confirmModal = await this.confirmModal(
|
const confirmModal = await this.confirmModal(
|
||||||
@@ -3547,7 +3548,6 @@ export default mixins(
|
|||||||
dataPinningEventBus.$off('pin-data', this.addPinDataConnections);
|
dataPinningEventBus.$off('pin-data', this.addPinDataConnections);
|
||||||
dataPinningEventBus.$off('unpin-data', this.removePinDataConnections);
|
dataPinningEventBus.$off('unpin-data', this.removePinDataConnections);
|
||||||
nodeViewEventBus.$off('saveWorkflow', this.saveCurrentWorkflowExternal);
|
nodeViewEventBus.$off('saveWorkflow', this.saveCurrentWorkflowExternal);
|
||||||
this.workflowsStore.setWorkflowId(PLACEHOLDER_EMPTY_WORKFLOW_ID);
|
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
this.resetWorkspace();
|
this.resetWorkspace();
|
||||||
|
|||||||
Reference in New Issue
Block a user