Frontend: Don't update markers while loading

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-01-15 16:48:54 +01:00
parent 66f781fb90
commit d9c68fa933

View file

@ -113,8 +113,6 @@
};
return Api.get("geo", options).then((response) => {
this.loading = false;
if(response.data.features && response.data.features.length > 0) {
this.markers = {};
@ -133,12 +131,14 @@
this.map.fitBounds(this.result.bbox, {maxZoom: 19});
}
this.initialized = true;
this.updateMarkers();
} else {
this.$notify.warning("No photos found");
}
this.initialized = true;
this.loading = false;
}).catch(() => this.loading = false);
},
renderMap() {