From 5fdaa18fc5aafeac35f62f3942df0771405fa3ca Mon Sep 17 00:00:00 2001 From: credelinghuys Date: Tue, 19 May 2026 13:35:09 -0400 Subject: [PATCH] CASH-2563: Reapply bailout --- src/store/index.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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(