Skip to content

Commit

Permalink
fix(actions/ui): Hide nearby stops outside Stop Viewer.
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Sep 15, 2023
1 parent d7f0c2b commit 34da94f
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 34da94f

Please sign in to comment.