Skip to content

Commit

Permalink
fix markers not showing for first route
Browse files Browse the repository at this point in the history
  • Loading branch information
graue committed Dec 21, 2024
1 parent 3954bc1 commit fb3b3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/BikeHopperMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ const BikeHopperMap = forwardRef(function BikeHopperMapInternal(
]);

let viewingStepMarker: React.ReactNode | undefined;
if (routes && activePath && viewingStep) {
if (routes && activePath != null && viewingStep) {
const viewingLeg = routes[activePath].legs[viewingStep[0]];
const iconClasses = 'bg-slate-100 text-slate-900 rounded-md shadow-md';

Expand Down

0 comments on commit fb3b3e5

Please sign in to comment.