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:
parent
97238a1621
commit
8b9fd67d6f
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user