From 34da94f2a046f201659aa4bef6740b7df8b95470 Mon Sep 17 00:00:00 2001 From: binh-dam-ibigroup <56846598+binh-dam-ibigroup@users.noreply.github.com> Date: Fri, 15 Sep 2023 17:34:35 -0400 Subject: [PATCH] fix(actions/ui): Hide nearby stops outside Stop Viewer. --- lib/actions/ui.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/actions/ui.js b/lib/actions/ui.js index 43cf75b58..9ea85829e 100644 --- a/lib/actions/ui.js +++ b/lib/actions/ui.js @@ -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 })) @@ -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))