From 8b9fd67d6f9c9cb735526e8ed3a3a75e841e1876 Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Wed, 27 Jul 2022 13:01:49 -0500 Subject: [PATCH] Remove AxiosError import due to production build error --- web/src/routes/albums/[albumId]/index.svelte | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/web/src/routes/albums/[albumId]/index.svelte b/web/src/routes/albums/[albumId]/index.svelte index 98297f9e54..73d7b2d20f 100644 --- a/web/src/routes/albums/[albumId]/index.svelte +++ b/web/src/routes/albums/[albumId]/index.svelte @@ -16,14 +16,12 @@ album: albumInfo } }; - } catch (e) { - if (e instanceof AxiosError) { - if (e.response?.status === 404) { - return { - status: 302, - redirect: '/albums' - }; - } + } catch (e: any) { + if (e.response?.status === 404) { + return { + status: 302, + redirect: '/albums' + }; } return { @@ -36,7 +34,6 @@