Skip to content

Commit

Permalink
Merge pull request #488 from HSLdevcom/DT-6387
Browse files Browse the repository at this point in the history
Selecting map view crashes
  • Loading branch information
Antiik91 authored Nov 14, 2024
2 parents 2a477a0 + 517b7da commit b41585e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/monitorMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const MonitorMap: FC<IProps> = ({
const stopIDs = mapSettings.stops.map(stop => stop.gtfsId);
const now = DateTime.now().toSeconds();
const markerState = vehicleMarkerState;
const flatDeps = departuresForMap.flat();
const flatDeps = departuresForMap?.flat();
messages.forEach(m => {
const { id, lat, long, next_stop, route } = m;
const nextStop = stopIDs.includes(next_stop);
Expand Down

0 comments on commit b41585e

Please sign in to comment.