Skip to content

Commit

Permalink
Remove extra function definition
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Jan 11, 2024
1 parent c5dc289 commit 24d5929
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client-next/src/components/MapView/MapView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export function MapView({
e: mapboxgl.MapMouseEvent & {
features?: mapboxgl.MapboxGeoJSONFeature[] | undefined;
},
setShowPropsPopup: (value: ((prevState: PopupData | null) => PopupData | null) | PopupData | null) => void,
) => {
if (e.features) {
// if you click on a cluster of map features it's possible that there are multiple
Expand All @@ -64,7 +63,7 @@ export function MapView({
}}
interactiveLayerIds={['regular-stop']}
onClick={(e) => {
showFeaturePropPopup(e, setShowPropsPopup);
showFeaturePropPopup(e);
}}
// put lat/long in URL and pan to it on page reload
hash={true}
Expand Down

0 comments on commit 24d5929

Please sign in to comment.