mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix(web): shared link return 404 (#3791)
This commit is contained in:
parent
71ea46d95e
commit
d7f52739e8
2 changed files with 9 additions and 4 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue