forked from MapComplete/MapComplete
Fix: attributed image doesn't open fullscreen if no ID given
This commit is contained in:
parent
565e92a37d
commit
b272c1cda7
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@
|
||||||
if (previewedImage) {
|
if (previewedImage) {
|
||||||
onDestroy(
|
onDestroy(
|
||||||
previewedImage.addCallbackAndRun((previewedImage) => {
|
previewedImage.addCallbackAndRun((previewedImage) => {
|
||||||
showBigPreview.set(previewedImage?.id === image.id)
|
showBigPreview.set(previewedImage !== undefined && previewedImage?.id === image.id)
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue