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,
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue