Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
fix(controller): set loading init to false correctly (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyDec authored and antleblanc committed Apr 23, 2019
1 parent 1703c70 commit cfe6060
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default class {
country: MONDIAL_RELAY.defaultCountry,
};

this.loading.init = false;
return this.$q.all([
// workaround to fix display bug on the map
this.leafletData.getMap(this.mapId).then((leafletMap) => {
Expand All @@ -77,10 +78,7 @@ export default class {
}),

this.gotoUserLoc(),
])
.finally(() => {
this.loading.init = false;
});
]);
}

/**
Expand Down

0 comments on commit cfe6060

Please sign in to comment.