From ef26f1a684ee9d9940fe7cf452fe1be227b746dd Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 10 May 2022 15:31:36 +0200 Subject: [PATCH] Fix clicking on map crashing Signed-off-by: Thomas Citharel --- js/src/components/Map.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/src/components/Map.vue b/js/src/components/Map.vue index 819fb868..30a56104 100644 --- a/js/src/components/Map.vue +++ b/js/src/components/Map.vue @@ -142,7 +142,9 @@ export default class Map extends Vue { } updateDraggableMarkerPosition(e: LatLng): void { - this.updateDraggableMarkerCallback(e, this.zoom); + if (this.updateDraggableMarkerCallback) { + this.updateDraggableMarkerCallback(e, this.zoom); + } } updateZoom(zoom: number): void {