CSR-2183: add logic for when error.response.status is undefined like 404 condition

This commit is contained in:
Adam Caouette 2024-08-24 11:01:26 -04:00
parent ba143082ba
commit 15200297ea

View file

@ -98,7 +98,7 @@ export default {
);
}
if (error.response.status != "404") {
if (error.response.status && error.response.status != "404") {
// Do not route to error logic when no wipers found or no promo found (404s)
router.navigateError();