Fix: inspector: fix AggregateImages.svelte

This commit is contained in:
Pieter Vander Vennet 2025-05-09 15:35:38 +02:00
parent 14fd4e0f4f
commit e2e3e4b51d
2 changed files with 4 additions and 4 deletions

View file

@ -15,13 +15,13 @@
Promise.all(features.map((f) => downloader.downloadHistory(f.properties.id)))
)
let imageKeys = new Set(
...["panoramax", "image:streetsign", "image:menu"].map((k) => {
[].concat(...["panoramax", "image:streetsign", "image:menu", "toilets:wheelchair:panoramax"].map((k) => {
const result: string[] = [k]
for (let i = 0; i < 10; i++) {
result.push(k + ":" + i)
}
return result
})
}))
)
let usernamesSet = new Set(onlyShowUsername)
let allDiffs: Store<
@ -42,7 +42,7 @@
{:else if $addedImages.length === 0}
No images added by this contributor
{:else}
<div class="flex">
<div class="flex gap-x-2 flex-wrap">
{#each $addedImages as imgDiff}
<div class="h-48 w-48">
<AttributedPanoramaxImage hash={imgDiff.value} />

View file

@ -45,7 +45,7 @@
let showBigPreview = new UIEventSource(false)
onDestroy(
showBigPreview.addCallbackAndRun((shown) => {
state.guistate.setPreviewedImage(shown ? image : undefined)
state?.guistate?.setPreviewedImage(shown ? image : undefined)
})
)
if (previewedImage) {