Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
4cc8b1446b
commit
085abd1f3a
1 changed files with 2 additions and 2 deletions
|
|
@ -155,8 +155,8 @@ router.beforeEach(async (to, from) => {
|
|||
showIssLoadingModal(true);
|
||||
}
|
||||
|
||||
const callSaveSession = !useMainStore().order?.referralNumber && (to.name === issPageValues.VEHICLE_SELECTION || to.name === issPageValues.POLICY_VEHICLES);
|
||||
if (callSaveSession) {
|
||||
const callSaveSession = !useMainStore().order?.referralNumber && (to.name === issPageValues.VEHICLE_SELECTION || to.name === issPageValues.POLICY_VEHICLES);
|
||||
if (callSaveSession) {
|
||||
// Forcing a synchronous savesession call here to create the referral for the first time.
|
||||
// AfterEach does not support synchronous calls that block navigation. Which is why this is in the beforeEach method.
|
||||
// This only needs to be called once in a certain location, all other saveSession calls are async in afterEach (except the last one on order submission)
|
||||
|
|
|
|||
Loading…
Reference in a new issue