Skip to content

Commit

Permalink
fix(itinerary-page): no walk or bike routes shown
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Helms authored and hbruch committed Feb 3, 2025
1 parent 9457465 commit 32a0a62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions app/component/ItineraryListContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ class ItineraryListContainer extends React.Component {
driving,
hasNoTransitItineraries,
settingsNotification,
error,
routingErrors,
} = this.props;

const searchTime =
Expand Down Expand Up @@ -284,8 +286,8 @@ class ItineraryListContainer extends React.Component {
activeIndex={activeIndex}
currentTime={currentTime}
locationState={locationState}
error={this.props.error}
routingErrors={this.props.routingErrors}
error={error}
routingErrors={routingErrors}
from={otpToLocation(from)}
intermediatePlaces={getIntermediatePlaces(location.query)}
itineraries={itineraries}
Expand Down
4 changes: 2 additions & 2 deletions app/component/ItineraryPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ class ItineraryPage extends React.Component {

const parkRidePlan = {
...result.parkRidePlan,
itineraries: transitItineraries(result.parkRidePlan.itineraries),
itineraries: transitItineraries(result.parkRidePlan?.itineraries),
};

this.setState(
Expand Down Expand Up @@ -369,7 +369,7 @@ class ItineraryPage extends React.Component {
}).then(result => {
const relaxedPlan = {
...result.plan,
itineraries: transitItineraries(result.plan.itineraries),
itineraries: transitItineraries(result.plan?.itineraries),
};
this.setState({
relaxedPlan,
Expand Down

0 comments on commit 32a0a62

Please sign in to comment.