From 3c8147081faaa4dcdfc1f63a2d5227df8baf2e3a Mon Sep 17 00:00:00 2001 From: CarlNation <32103961+CarlNation@users.noreply.github.com> Date: Wed, 28 Feb 2024 09:48:19 -0500 Subject: [PATCH] CSR-1855 CSR-1855 allow 404s to skip page error logic for no wipers or no promo --- src/global-methods.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/global-methods.js b/src/global-methods.js index c5e6102dc..bd0ea36db 100644 --- a/src/global-methods.js +++ b/src/global-methods.js @@ -61,7 +61,11 @@ export default { ); } - router.navigateError(); + // do not route to error logic when no wipers found or no promo found (404s) + if (error.response.status != "404") { + router.navigateError(); + } + return reject(error.response); } );