0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-21 00:52:43 -05:00

Remove AxiosError import due to production build error

This commit is contained in:
Alex Tran 2022-07-27 13:01:49 -05:00
parent 97238a1621
commit 8b9fd67d6f
No known key found for this signature in database
GPG key ID: E4954BC787B85C8A

View file

@ -16,14 +16,12 @@
album: albumInfo album: albumInfo
} }
}; };
} catch (e) { } catch (e: any) {
if (e instanceof AxiosError) { if (e.response?.status === 404) {
if (e.response?.status === 404) { return {
return { status: 302,
status: 302, redirect: '/albums'
redirect: '/albums' };
};
}
} }
return { return {
@ -36,7 +34,6 @@
<script lang="ts"> <script lang="ts">
import AlbumViewer from '$lib/components/album-page/album-viewer.svelte'; import AlbumViewer from '$lib/components/album-page/album-viewer.svelte';
import { AxiosError } from 'axios';
export let album: AlbumResponseDto; export let album: AlbumResponseDto;
</script> </script>