Skip to content

Commit

Permalink
refactor(SimpleMap): Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Oct 10, 2024
1 parent d827154 commit 6b97adf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/components/map/simple-map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ const SimpleMap = ({ config, itinerary }: Props): JSX.Element => {

return (
<BaseMap
baseLayer={baseLayerUrls?.length > 1 ? baseLayerUrls : baseLayerUrls?.[0]}
baseLayer={
(baseLayerUrls?.length || 0) > 1 ? baseLayerUrls : baseLayerUrls?.[0]
}
center={[initLat, initLon]}
mapLibreProps={{ reuseMaps: true }}
maxZoom={maxZoom}
Expand Down

0 comments on commit 6b97adf

Please sign in to comment.