Tie up possible race conditions

This commit is contained in:
Chloe Herd 2025-10-22 11:44:11 -04:00
parent 94e89419d2
commit 30b1cfd787
3 changed files with 5 additions and 5 deletions

View file

@ -41,7 +41,7 @@ export async function beforeEach(to, from) {
nextPage: to?.name, nextPage: to?.name,
}; };
handleSoftError(errorPayload, true); await handleSoftError(errorPayload, true);
return false; return false;
} }
@ -88,7 +88,7 @@ export async function beforeEach(to, from) {
nextPage: to?.name, nextPage: to?.name,
}; };
handleSoftError(errorPayload); await handleSoftError(errorPayload);
return; return;
} }

View file

@ -30,7 +30,7 @@ async function navigate(scenario, currentPageName, withSaving = false, forceTopL
nextPage: nextPage?.name, nextPage: nextPage?.name,
}; };
handleSoftError(errorPayload); await handleSoftError(errorPayload);
return; return;
} }

View file

@ -18,7 +18,7 @@ export async function errorBeforeEnter(to, from) {
nextPage: to?.name, nextPage: to?.name,
}; };
handleHardError(errorPayload); await handleHardError(errorPayload);
return; return;
} }
@ -31,7 +31,7 @@ export async function errorBeforeEnter(to, from) {
nextPage: to?.name, nextPage: to?.name,
}; };
handleHardError(errorPayload); await handleHardError(errorPayload);
return; return;
} else { } else {
await store.dispatch(storeActions.UPDATE_HAS_TRIGGERED_ERROR, true); await store.dispatch(storeActions.UPDATE_HAS_TRIGGERED_ERROR, true);