Fix: actually upload images to notes

This commit is contained in:
Pieter Vander Vennet 2025-04-23 21:43:10 +02:00
parent 4552ccbbf1
commit a8707243cf
2 changed files with 1 additions and 2 deletions

View file

@ -212,7 +212,7 @@ export class ImageUploadManager {
args.featureId
)
if (args.featureId.startsWith("note/")) {
if (!isNaN(Number(args.featureId))) {
// This is an OSM-note
const url = result.absoluteUrl
await this._osmConnection.addCommentToNote(args.featureId, url)

View file

@ -13,7 +13,6 @@
import FileSelector from "../Base/FileSelector.svelte"
import LoginButton from "../Base/LoginButton.svelte"
import { Translation } from "../i18n/Translation"
import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
import type { Feature } from "geojson"
import Camera from "@babeard/svelte-heroicons/mini/Camera"