mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
Remove AxiosError import due to production build error
This commit is contained in:
parent
97238a1621
commit
8b9fd67d6f
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user