From 10d728106d32c08cc29f318c92c136235b1e9002 Mon Sep 17 00:00:00 2001 From: Morgan Ney Date: Mon, 25 Dec 2023 12:25:09 -0600 Subject: [PATCH] fix: do not clear selected stop from map on selector changes. (#151) --- packages/ui/src/globals.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/ui/src/globals.tsx b/packages/ui/src/globals.tsx index 5576a45..b6cfe7a 100644 --- a/packages/ui/src/globals.tsx +++ b/packages/ui/src/globals.tsx @@ -40,23 +40,20 @@ const reducer = (state: BusmapState, action: BusmapAction): BusmapState => { agency: action.value, route: undefined, direction: undefined, - stop: undefined, - selected: undefined + stop: undefined } case 'route': return { ...state, route: action.value, direction: undefined, - stop: undefined, - selected: undefined + stop: undefined } case 'direction': return { ...state, direction: action.value, - stop: undefined, - selected: undefined + stop: undefined } case 'stop': return { ...state, stop: action.value }