mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
fix(editor): Fix for broken tab navigation (#4881)
🐛 Fixing broken tab navigation
This commit is contained in:
parent
b2aba48dfe
commit
983c5447c5
|
@ -349,7 +349,8 @@ export default mixins(
|
|||
next();
|
||||
return;
|
||||
}
|
||||
|
||||
// Make sure workflow id is empty when leaving the editor
|
||||
this.workflowsStore.setWorkflowId(PLACEHOLDER_EMPTY_WORKFLOW_ID);
|
||||
const result = this.uiStore.stateIsDirty;
|
||||
if (result) {
|
||||
const confirmModal = await this.confirmModal(
|
||||
|
@ -3547,7 +3548,6 @@ export default mixins(
|
|||
dataPinningEventBus.$off('pin-data', this.addPinDataConnections);
|
||||
dataPinningEventBus.$off('unpin-data', this.removePinDataConnections);
|
||||
nodeViewEventBus.$off('saveWorkflow', this.saveCurrentWorkflowExternal);
|
||||
this.workflowsStore.setWorkflowId(PLACEHOLDER_EMPTY_WORKFLOW_ID);
|
||||
},
|
||||
destroyed() {
|
||||
this.resetWorkspace();
|
||||
|
|
Loading…
Reference in a new issue