1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-24 04:46:50 +02:00

fix(web): shared link return 404 (#3791)

This commit is contained in:
Alex
2023-08-22 07:22:49 +02:00
committed by GitHub
parent 71ea46d95e
commit d7f52739e8
2 changed files with 9 additions and 4 deletions

View File

@ -53,7 +53,9 @@
onMount(async () => {
document.addEventListener('keydown', onKeyboardPress);
getAllAlbums();
if (!sharedLink) {
getAllAlbums();
}
// Import hack :( see https://github.com/vadimkorr/svelte-carousel/issues/27#issuecomment-851022295
// TODO: Move to regular import once the package correctly supports ESM.
@ -67,7 +69,7 @@
}
});
$: asset.id && getAllAlbums(); // Update the album information when the asset ID changes
$: asset.id && !sharedLink && getAllAlbums(); // Update the album information when the asset ID changes
const getAllAlbums = async () => {
try {
@ -336,6 +338,7 @@
<DetailPanel
{asset}
albums={appearsInAlbums}
{sharedLink}
on:close={() => ($isShowDetail = false)}
on:close-viewer={handleCloseViewer}
on:description-focus-in={disableKeyDownEvent}