mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 12:55:55 +01:00
fix(geomap): multiple clicks creating multiple markers
This commit is contained in:
@@ -125,6 +125,7 @@ export default class GeoMapTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
const { noteId } = this.clipboard;
|
const { noteId } = this.clipboard;
|
||||||
await attributes.setLabel(noteId, LOCATION_ATTRIBUTE, [e.latlng.lat, e.latlng.lng].join(","));
|
await attributes.setLabel(noteId, LOCATION_ATTRIBUTE, [e.latlng.lat, e.latlng.lng].join(","));
|
||||||
|
this.clipboard = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
getData(): any {
|
getData(): any {
|
||||||
|
|||||||
Reference in New Issue
Block a user