fix(web): inconsistent asset nav bar state after visiting shared link (#26674)

This commit is contained in:
Snowknight26
2026-03-04 07:25:29 -06:00
committed by GitHub
parent 13c4260a1f
commit 5989c9b4aa
2 changed files with 7 additions and 3 deletions
@@ -10,7 +10,7 @@
import { navigate } from '$lib/utils/navigation';
import { sharedLinkLogin, SharedLinkType, type AssetResponseDto, type SharedLinkResponseDto } from '@immich/sdk';
import { Button, Logo, PasswordInput } from '@immich/ui';
import { tick } from 'svelte';
import { onDestroy, tick } from 'svelte';
import { t } from 'svelte-i18n';
type Props = {
@@ -60,6 +60,10 @@
event.preventDefault();
await handlePasswordSubmit();
};
onDestroy(() => {
setSharedLink(undefined);
});
</script>
<svelte:head>