From b272c1cda7352a4a78e4f61dbd39fe2f80ae204d Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 17 Dec 2024 04:06:03 +0100 Subject: [PATCH] Fix: attributed image doesn't open fullscreen if no ID given --- src/UI/Image/AttributedImage.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }) ) }