Skip to content

Commit

Permalink
correct ts issues
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Dec 5, 2024
1 parent 255a18c commit 3c3293b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/route-viewer-overlay/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ const RouteViewerOverlay = (props: Props): JSX.Element => {
bounds || new LngLatBounds(coordsArray[0], coordsArray[0])
);
} else if (geoJson?.type === "GeometryCollection") {
// @ts-expect-error geoJson in this case is not a Polygon! See check above
const { geometries } = geoJson;
geometries.forEach(geometry => {
let { coordinates } = geometry;
Expand Down

0 comments on commit 3c3293b

Please sign in to comment.