mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Fix routing between workflow editing and new workflow pages (#14031)
This commit is contained in:
@@ -1612,8 +1612,10 @@ function showAddFirstStepIfEnabled() {
|
||||
watch(
|
||||
() => route.name,
|
||||
async (newRouteName, oldRouteName) => {
|
||||
// it's navigating from and existing workflow to a new workflow
|
||||
const force = newRouteName === VIEWS.NEW_WORKFLOW && oldRouteName === VIEWS.WORKFLOW;
|
||||
// When navigating from an existing workflow to a new workflow or the other way around we should load the new workflow
|
||||
const force =
|
||||
(newRouteName === VIEWS.NEW_WORKFLOW && oldRouteName === VIEWS.WORKFLOW) ||
|
||||
(newRouteName === VIEWS.WORKFLOW && oldRouteName === VIEWS.NEW_WORKFLOW);
|
||||
await initializeRoute(force);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user