Skip to content
Snippets Groups Projects
Commit b8179a97 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix map being redraw after sidebar layer component set the user basemap

parent 99a90736
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@
</div>
</div>
<SidebarLayers
v-if="basemaps && map"
v-if="basemaps && map && !projectInfoLoading"
ref="sidebar"
/>
<div
......@@ -288,8 +288,6 @@ export default {
this.GET_PROJECT_INFO(this.slug)
])
.then(() => {
this.DISCARD_LOADER();
this.projectInfoLoading = false;
this.$nextTick(() => {
let map = mapService.getMap();
if (map) mapService.destroyMap();
......@@ -298,8 +296,10 @@ export default {
})
.catch((err) => {
console.error(err);
this.DISCARD_LOADER();
})
.finally(() => {
this.projectInfoLoading = false;
this.DISCARD_LOADER();
});
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment