Skip to content

Commit

Permalink
Merge pull request #1271 from opentripplanner/field-trip-repair-sept-24
Browse files Browse the repository at this point in the history
Field trip Fixes Sept. `24
  • Loading branch information
miles-grant-ibigroup authored Sep 17, 2024
2 parents a0aa5af + 584b116 commit b241380
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/actions/field-trip.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,10 @@ function prepareQueryParams(request, outbound) {
}
const hasExistingLocations = currentQuery.from || currentQuery.to
const locations =
!hasExistingLocations || window.confirm('Overwrite existing locations?')
!hasExistingLocations ||
window.confirm(
'Use custom set locations? Pressing "Cancel" will use the locations you have typed in. Pressing "OK" will use the locations currently saved to the field trip'
)
? await planParamsToQueryAsync(locationsToGeocode, config)
: { from: currentQuery.from, to: currentQuery.to }
return dispatch(setQueryParam({ ...locations, ...queryParams }))
Expand Down

0 comments on commit b241380

Please sign in to comment.