Skip to content

Commit

Permalink
Merge pull request #1055 from opentripplanner/check-transitleg-itins
Browse files Browse the repository at this point in the history
fix: check transitLeg on leg
  • Loading branch information
amy-corson-ibigroup authored Oct 27, 2023
2 parents beee832 + 1e8e0bd commit d6cfb2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/components/narrative/narrative-itineraries.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,9 @@ class NarrativeItineraries extends Component {
})

// Identify whether an itinerary uses transit & sort into appropriate bucket
const transitLegs = cur.legs.filter((leg) => isTransit(leg.mode))
const transitLegs = cur.legs.filter(
(leg) => isTransit(leg.mode) | leg.transitLeg
)

const modeContainer =
transitLegs.length > 0 ? modeItinMap.multi : modeItinMap.single
Expand Down

0 comments on commit d6cfb2c

Please sign in to comment.