From d9c68fa93388aa8eb27d005592be343c73c86697 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Wed, 15 Jan 2020 16:48:54 +0100 Subject: [PATCH] Frontend: Don't update markers while loading Signed-off-by: Michael Mayer --- frontend/src/pages/places.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/places.vue b/frontend/src/pages/places.vue index a6ec36c66..cfde72ca8 100644 --- a/frontend/src/pages/places.vue +++ b/frontend/src/pages/places.vue @@ -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() {