Skip to content

Commit

Permalink
chore: make hex map call asynchronous
Browse files Browse the repository at this point in the history
  • Loading branch information
spectrachrome committed Oct 23, 2023
1 parent b9ae2ab commit 72587e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ export default {
this.setAreaFromQuery();
// TODO, WIP
const { map } = getMapInstance('centerMap');
const loadendHandler = () => {
createHexMap(map);
const loadendHandler = async () => {
await createHexMap(map);
map.un('loadend', loadendHandler); // Unregister the event handler after it's called once
};

Expand Down

0 comments on commit 72587e7

Please sign in to comment.