Merge pull request #2908 from Safelite/feature/CASH-1636
Tie up possible race conditions
This commit is contained in:
commit
8d48f10562
3 changed files with 5 additions and 5 deletions
|
|
@ -41,7 +41,7 @@ export async function beforeEach(to, from) {
|
|||
nextPage: to?.name,
|
||||
};
|
||||
|
||||
handleSoftError(errorPayload, true);
|
||||
await handleSoftError(errorPayload, true);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ export async function beforeEach(to, from) {
|
|||
nextPage: to?.name,
|
||||
};
|
||||
|
||||
handleSoftError(errorPayload);
|
||||
await handleSoftError(errorPayload);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ async function navigate(scenario, currentPageName, withSaving = false, forceTopL
|
|||
nextPage: nextPage?.name,
|
||||
};
|
||||
|
||||
handleSoftError(errorPayload);
|
||||
await handleSoftError(errorPayload);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export async function errorBeforeEnter(to, from) {
|
|||
nextPage: to?.name,
|
||||
};
|
||||
|
||||
handleHardError(errorPayload);
|
||||
await handleHardError(errorPayload);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ export async function errorBeforeEnter(to, from) {
|
|||
nextPage: to?.name,
|
||||
};
|
||||
|
||||
handleHardError(errorPayload);
|
||||
await handleHardError(errorPayload);
|
||||
return;
|
||||
} else {
|
||||
await store.dispatch(storeActions.UPDATE_HAS_TRIGGERED_ERROR, true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue