High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): prevent infinite loop when modifying stacked asset (#14162)
Michel Heusschena60209db3e74
diff --git a/web/src/lib/components/asset-viewer/asset-viewer.svelte b/web/src/lib/components/asset-viewer/asset-viewer.svelteindex 988707cfa7..e5b1377965 100644--- a/web/src/lib/components/asset-viewer/asset-viewer.svelte+++ b/web/src/lib/components/asset-viewer/asset-viewer.svelte@@ -32,7 +32,7 @@type AssetResponseDto,type StackResponseDto,} from '@immich/sdk';- import { onDestroy, onMount } from 'svelte';+ import { onDestroy, onMount, untrack } from 'svelte';import { t } from 'svelte-i18n';import { fly } from 'svelte/transition';import Thumbnail from '../assets/thumbnail/thumbnail.svelte';@@ -120,9 +120,11 @@stack = null;}- if (stack && stack?.assets.length > 1) {- preloadAssets.push(stack.assets[1]);- }+ untrack(() => {+ if (stack && stack?.assets.length > 1) {+ preloadAssets.push(stack.assets[1]);+ }+ });};const handleAddComment = () => {