diff --git a/src/store/index.js b/src/store/index.js index 9fe220fcc..5b7449c4b 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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(