Skip to content

Commit

Permalink
fixed the type-check
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Aug 1, 2024
1 parent d92a514 commit 1c78fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webclient/app/components/DetailsInteractiveMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ 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");
}
}
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;
Expand Down

0 comments on commit 1c78fa8

Please sign in to comment.