Skip to content

Commit

Permalink
Merge pull request #998 from opentripplanner/hide-nearbys-outside-sto…
Browse files Browse the repository at this point in the history
…p-viewer

fix(actions/ui): Hide nearby stops outside Stop Viewer.
  • Loading branch information
binh-dam-ibigroup authored Sep 19, 2023
2 parents 68f9b31 + 58b5fa3 commit 82d12b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/actions/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export function matchContentToUrl(map, location) {
const id = match?.params?.id
switch (root) {
case 'route':
dispatch(setViewedStop(null))
if (id) {
await dispatch(findRoutesIfNeeded())
dispatch(findRouteIfNeeded({ routeId: id }))
Expand Down Expand Up @@ -223,6 +224,7 @@ export function matchContentToUrl(map, location) {
}
break
case 'trip':
dispatch(setViewedStop(null))
if (id) {
dispatch(setViewedTrip({ tripId: id }))
dispatch(setMainPanelContent(MainPanelContent.TRIP_VIEWER))
Expand Down

0 comments on commit 82d12b7

Please sign in to comment.