1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02: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
}
};
} 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 @@
<script lang="ts">
import AlbumViewer from '$lib/components/album-page/album-viewer.svelte';
import { AxiosError } from 'axios';
export let album: AlbumResponseDto;
</script>