# HG changeset patch # User Thomas Junk # Date 1568813623 -7200 # Node ID 562f9da8ba0bcc53a6252fbb8c90af47d88e6175 # Parent b4f04f9076b28f7a0a43b219d598cd6a7a9c3efb map: restore zoom to extent functionality diff -r b4f04f9076b2 -r 562f9da8ba0b client/src/components/map/Map.vue --- a/client/src/components/map/Map.vue Wed Sep 18 15:25:42 2019 +0200 +++ b/client/src/components/map/Map.vue Wed Sep 18 15:33:43 2019 +0200 @@ -194,6 +194,7 @@ } }) .then(response => { + this.mountMap(); this.$store.dispatch("map/moveToBoundingBox", { boundingBox: [ response.data.extent.x1, @@ -207,14 +208,12 @@ }); }) .catch(error => { + this.mountMap(); const { status, data } = error.response; displayError({ title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); - }) - .finally(() => { - this.mountMap(); }); } else { this.mountMap();