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:
parent
97238a1621
commit
8b9fd67d6f
1 changed files with 6 additions and 9 deletions
|
@ -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…
Add table
Reference in a new issue