From 1c78fa8bd2cc97b3e791c1ef25cb6333118e551d Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Thu, 1 Aug 2024 19:22:34 +0200 Subject: [PATCH] fixed the type-check --- webclient/app/components/DetailsInteractiveMap.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webclient/app/components/DetailsInteractiveMap.vue b/webclient/app/components/DetailsInteractiveMap.vue index 1be3c2b70..ba7001754 100644 --- a/webclient/app/components/DetailsInteractiveMap.vue +++ b/webclient/app/components/DetailsInteractiveMap.vue @@ -26,7 +26,6 @@ function loadInteractiveMap() { if (document.getElementById("interactive-map")?.classList.contains("maplibregl-map")) { marker.value?.remove(); } else { - // @ts-expect-error recursive calls are not supported by ts map.value = initMap("interactive-map"); document.getElementById("interactive-map")?.classList.remove("loading"); @@ -34,6 +33,7 @@ function loadInteractiveMap() { } marker.value = new Marker({ element: createMarker() }); const coords = props.data.coords; + // @ts-expect-error somehow this is too deep for typescript if (map.value !== undefined) marker.value.setLngLat([coords.lon, coords.lat]).addTo(map.value as Map); const overlays = props.data.maps?.overlays;