diff --git a/src/UI/Image/AttributedImage.svelte b/src/UI/Image/AttributedImage.svelte index a0f3a0363..e2c677386 100644 --- a/src/UI/Image/AttributedImage.svelte +++ b/src/UI/Image/AttributedImage.svelte @@ -42,7 +42,7 @@ if (previewedImage) { onDestroy( previewedImage.addCallbackAndRun((previewedImage) => { - showBigPreview.set(previewedImage?.id === image.id) + showBigPreview.set(previewedImage !== undefined && previewedImage?.id === image.id) }) ) }