Skip to content

Commit

Permalink
fix: do not clear selected stop from map on selector changes. (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
morganney authored Dec 25, 2023
1 parent b1fefa7 commit 10d7281
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/ui/src/globals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 10d7281

Please sign in to comment.