From ef5b2d60f35235d1703364c2980cfd277e4b56a1 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 20 Jan 2025 23:54:22 +0200 Subject: [PATCH] fix(geomap): multiple clicks creating multiple markers --- src/public/app/widgets/type_widgets/geo_map.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts index 71580e5de..3bb69da07 100644 --- a/src/public/app/widgets/type_widgets/geo_map.ts +++ b/src/public/app/widgets/type_widgets/geo_map.ts @@ -125,6 +125,7 @@ export default class GeoMapTypeWidget extends TypeWidget { const { noteId } = this.clipboard; await attributes.setLabel(noteId, LOCATION_ATTRIBUTE, [e.latlng.lat, e.latlng.lng].join(",")); + this.clipboard = undefined; } getData(): any {