Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
devcshort committed Jun 8, 2024
1 parent 253db32 commit 802b62d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/map/radar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function RadarMap(props) {

return (
<Map {...mapProps} {...props}>
<Markers results={props.results} zoom={props.boundsZoom} />
<Markers results={props.results} />
</Map>
);
}
1 change: 0 additions & 1 deletion src/components/resource/components/information/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export default function ResourceInformation(props: Props) {
<div className="flex h-full w-full">
<MapLoader
zoom={12}
marker={{ zoom: 12 }}
boundsPadding={50}
boundsZoom={13}
results={[
Expand Down
6 changes: 5 additions & 1 deletion src/pages/favorites/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,12 @@ export default function FavoritesDetail() {
?.map((list) => {
if (list?.location?.coordinates == null) return null;
return {
id: list._id,
location: {
point: list.location,
point: {
type: list.location.type,
coordinates: list.location.coordinates,
},
},
};
})
Expand Down
2 changes: 1 addition & 1 deletion src/pages/favorites/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function Lists() {
</div>

<div className="flex h-full w-full">
<MapLoader />
<MapLoader results={[]} />
</div>
</div>
</div>
Expand Down

0 comments on commit 802b62d

Please sign in to comment.