Skip to content

Commit

Permalink
Merge pull request #1232 from opentripplanner/respect-numitins
Browse files Browse the repository at this point in the history
Properly respect `numItineraries` config item
  • Loading branch information
miles-grant-ibigroup authored Jul 1, 2024
2 parents 1e68258 + 034c04e commit 05e26e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/actions/apiV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -995,12 +995,12 @@ export function routingQuery(searchId = null, updateSearchInReducer) {
from: currentQuery.from,
modes: modes || activeModes,
modeSettings,
numItineraries: numItineraries || config?.modes?.numItineraries || 7,
time,
to: currentQuery.to,
unpreferred,
// TODO: Does this break everything?
...currentQuery
...currentQuery,
numItineraries: config?.modes?.numItineraries || numItineraries || 7
}
// Generate combinations if the modes for query are not specified in the query
// FIXME: BICYCLE_RENT does not appear in this list unless TRANSIT is also enabled.
Expand Down

0 comments on commit 05e26e5

Please sign in to comment.