From 72587e7f2e15553a89b2f31fea208ad8eab27bec Mon Sep 17 00:00:00 2001 From: Moritz Riede Date: Mon, 23 Oct 2023 14:55:01 +0200 Subject: [PATCH] chore: make hex map call asynchronous --- app/src/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/App.vue b/app/src/App.vue index 19786daf6b..e027f4a738 100644 --- a/app/src/App.vue +++ b/app/src/App.vue @@ -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 };