Fix: attributed image doesn't open fullscreen if no ID given

This commit is contained in:
Pieter Vander Vennet 2024-12-17 04:06:03 +01:00
parent 565e92a37d
commit b272c1cda7

View file

@ -42,7 +42,7 @@
if (previewedImage) {
onDestroy(
previewedImage.addCallbackAndRun((previewedImage) => {
showBigPreview.set(previewedImage?.id === image.id)
showBigPreview.set(previewedImage !== undefined && previewedImage?.id === image.id)
})
)
}