changeset 4421:b4f04f9076b2

map: When logging in as ¯\_(ツ)_/¯ ensure map is at leas drawn
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 18 Sep 2019 15:25:42 +0200
parents 2261462ddcdc
children 562f9da8ba0b
files client/src/components/map/Map.vue
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/map/Map.vue	Wed Sep 18 15:21:09 2019 +0200
+++ b/client/src/components/map/Map.vue	Wed Sep 18 15:25:42 2019 +0200
@@ -194,7 +194,6 @@
           }
         })
           .then(response => {
-            this.mountMap();
             this.$store.dispatch("map/moveToBoundingBox", {
               boundingBox: [
                 response.data.extent.x1,
@@ -213,6 +212,9 @@
               title: this.$gettext("Backend Error"),
               message: `${status}: ${data.message || data}`
             });
+          })
+          .finally(() => {
+            this.mountMap();
           });
       } else {
         this.mountMap();