Merge branch 'fix-clicking-on-map' into 'main'

Fix clicking on map crashing

See merge request framasoft/mobilizon!1239
This commit is contained in:
Thomas Citharel 2022-05-10 16:57:28 +00:00
commit 90980bc2c5

View File

@ -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 {