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,
|
pageNameToLog: pageNameToLog,
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
// if (error.status == 500) {
|
if (error.status == 500) {
|
||||||
// return { PartsNotFound: true };
|
return { PartsNotFound: true };
|
||||||
// }
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Triggers bailout
|
// Triggers bailout
|
||||||
// if (response.PartsNotFound) {
|
if (response.PartsNotFound) {
|
||||||
// return response;
|
return response;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// Check if we only have MISC parts to trigger bailout
|
// Check if we only have MISC parts to trigger bailout
|
||||||
// const miscPartsResponse = checkIfMiscParts(response.data.partsOrQuestions);
|
const miscPartsResponse = checkIfMiscParts(response.data.partsOrQuestions);
|
||||||
// if (miscPartsResponse.PartsNotFound) {
|
if (miscPartsResponse.PartsNotFound) {
|
||||||
// return miscPartsResponse;
|
return miscPartsResponse;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// Flatten location and name properties
|
// Flatten location and name properties
|
||||||
response.data.partsOrQuestions = convertGlassPieceNamingFromApi(
|
response.data.partsOrQuestions = convertGlassPieceNamingFromApi(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue