Fix: fix uploading images in the 'notes' theme

This commit is contained in:
Pieter Vander Vennet 2024-10-29 23:53:58 +01:00
parent e4b75c1681
commit 5fd0314408
3 changed files with 9 additions and 4 deletions

View file

@ -16,6 +16,7 @@
import Camera from "@babeard/svelte-heroicons/solid/Camera"
import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
import NoteCommentElement from "../Popup/Notes/NoteCommentElement"
import type { Feature } from "geojson"
export let state: SpecialVisualizationState
@ -23,6 +24,7 @@
export let targetKey: string = undefined
export let layer: LayerConfig
export let noBlur: boolean = false
export let feature: Feature = undefined
/**
* Image to show in the button
* NOT the image to upload!
@ -54,7 +56,8 @@
state.osmConnection.userDetails.data?.name ?? "Anonymous",
file,
"image",
noBlur
noBlur,
feature
)
if (!uploadResult) {
return