diff --git a/src/router/index.js b/src/router/index.js index 8948388d..f51b6811 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -172,7 +172,7 @@ router.afterEach(async (to, from) => { } const skipSaveSession = !!router.options.history.state[routerParams.SKIP_SAVE_SESSION]; - if (!skipSaveSession && !store.hasSubmittedOrder()) { + if (from.name !== undefined && !skipSaveSession && !store.hasSubmittedOrder()) { await saveSession({}); }