Merge pull request #3189 from Safelite/feature/CASH-2747

CASH-2747: Allow PartNotFound bailout
This commit is contained in:
Chris 2026-05-22 12:30:36 -04:00 committed by GitHub
commit 5b96ae5d7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1949,21 +1949,21 @@ export const actions = {
pageNameToLog: pageNameToLog, pageNameToLog: pageNameToLog,
}) })
.catch((error) => { .catch((error) => {
// if (error.status == 500) { if (error.status == 500) {
// return { PartNotFound: true }; return { PartNotFound: true };
// } }
}); });
// Triggers bailout // Triggers bailout
// if (response.PartNotFound) { if (response.PartNotFound) {
// 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.PartNotFound) { if (miscPartsResponse.PartNotFound) {
// return miscPartsResponse; return miscPartsResponse;
// } }
// Flatten location and name properties // Flatten location and name properties
response.data.partsOrQuestions = convertGlassPieceNamingFromApi( response.data.partsOrQuestions = convertGlassPieceNamingFromApi(