CASH-2747: Allow PartNotFound bailout

This commit is contained in:
credelinghuys 2026-05-22 12:17:27 -04:00
parent 71e12d6655
commit 29a2af5c2b

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(