Skip to content

Build your personal knowledge base with Trilium Notes

fix(geomap): multiple clicks creating multiple markers

Elian Doranef5b2d60f352
diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts
index 71580e5de3..3bb69da075 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 {