Skip to content

Commit

Permalink
fix(itinerary-page): scooter connections not showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Helms authored and Andreas Helms committed Dec 9, 2024
1 parent 7589f8c commit fdf8904
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/component/ItineraryPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ const streetHashes = [
streetHash.bikeAndVehicle,
streetHash.car,
streetHash.parkAndRide,
streetHash.scooter,
streetHash.onDemandTaxi,
];
const showVehiclesThresholdMinutes = 720;
const emptyPlans = {
Expand Down
7 changes: 6 additions & 1 deletion app/component/ItineraryPageUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ import {
import { getMapLayerOptions } from '../util/mapLayerUtils';
import { streetHash } from '../util/path';

export const noTransitHash = [streetHash.walk, streetHash.bike, streetHash.car];
export const noTransitHash = [
streetHash.walk,
streetHash.bike,
streetHash.car,
streetHash.scooter,
];

/**
* Returns the index of selected itinerary. Attempts to look for
Expand Down
8 changes: 5 additions & 3 deletions app/component/TransitLeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,13 @@ class TransitLeg extends React.Component {
<Link
to={
(alert.route &&
alert.route.gtfsId &&
alert.route?.gtfsId &&
leg.route &&
leg.trip &&
`/${PREFIX_ROUTES}/${leg.route.gtfsId}/${PREFIX_DISRUPTION}/${leg.trip.pattern.code}`) ||
(alert.stop &&
alert.stop.gtfsId &&
`/${PREFIX_STOPS}/${alert.stop.gtfsId}/${PREFIX_DISRUPTION}/`)
alert.stop?.gtfsId &&
`/${PREFIX_STOPS}/${alert.stop?.gtfsId}/${PREFIX_DISRUPTION}/`)
}
className="disruption-link"
>
Expand Down

0 comments on commit fdf8904

Please sign in to comment.