Skip to content

Commit

Permalink
fix: validate mapref
Browse files Browse the repository at this point in the history
  • Loading branch information
vesameskanen committed Dec 23, 2024
1 parent 795c1ce commit e607e53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/component/map/NearYouMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function NearYouMap(
const newBounds = handleBounds(position, sortedStopEdges);
if (newBounds.length > 0) {
setBounds(newBounds);
setTimeout(() => mwtRef.current?.map.updateZoom(), 1);
setTimeout(() => mwtRef.current?.map?.updateZoom(), 1);
}
}, [position, sortedStopEdges]);

Expand Down

0 comments on commit e607e53

Please sign in to comment.