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 @@