Merge pull request #3184 from Safelite/feature/CASH-2563
CASH-2563: Reapply bailout
This commit is contained in:
commit
50e9df1bf1
1 changed files with 10 additions and 10 deletions
|
|
@ -1949,21 +1949,21 @@ export const actions = {
|
|||
pageNameToLog: pageNameToLog,
|
||||
})
|
||||
.catch((error) => {
|
||||
// if (error.status == 500) {
|
||||
// return { PartsNotFound: true };
|
||||
// }
|
||||
if (error.status == 500) {
|
||||
return { PartsNotFound: true };
|
||||
}
|
||||
});
|
||||
|
||||
// Triggers bailout
|
||||
// if (response.PartsNotFound) {
|
||||
// return response;
|
||||
// }
|
||||
if (response.PartsNotFound) {
|
||||
return response;
|
||||
}
|
||||
|
||||
// Check if we only have MISC parts to trigger bailout
|
||||
// const miscPartsResponse = checkIfMiscParts(response.data.partsOrQuestions);
|
||||
// if (miscPartsResponse.PartsNotFound) {
|
||||
// return miscPartsResponse;
|
||||
// }
|
||||
const miscPartsResponse = checkIfMiscParts(response.data.partsOrQuestions);
|
||||
if (miscPartsResponse.PartsNotFound) {
|
||||
return miscPartsResponse;
|
||||
}
|
||||
|
||||
// Flatten location and name properties
|
||||
response.data.partsOrQuestions = convertGlassPieceNamingFromApi(
|
||||
|
|
|
|||
Loading…
Reference in a new issue