mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 18:39:22 +08:00
fix(geomap): multiple clicks creating multiple markers
This commit is contained in:
parent
986a1c25be
commit
ef5b2d60f3
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user