Skip to content

Commit

Permalink
Decouple access and egress mode selects
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Nov 21, 2023
1 parent 88765aa commit 1cc877e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions client-next/src/components/SearchBar/AccessSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export function AccessSelect({
modes: {
...tripQueryVariables.modes,
accessMode: e.target.value as StreetMode,
egressMode: tripQueryVariables.modes?.egressMode || (e.target.value as StreetMode),
},
});
} else {
Expand All @@ -34,7 +33,6 @@ export function AccessSelect({
? {
...tripQueryVariables.modes,
accessMode: undefined,
egressMode: undefined,
}
: undefined,
});
Expand Down
2 changes: 0 additions & 2 deletions client-next/src/components/SearchBar/EgressSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export function EgressSelect({
...tripQueryVariables,
modes: {
...tripQueryVariables.modes,
accessMode: tripQueryVariables.modes?.accessMode || (e.target.value as StreetMode),
egressMode: e.target.value as StreetMode,
},
});
Expand All @@ -33,7 +32,6 @@ export function EgressSelect({
tripQueryVariables.modes?.directMode || tripQueryVariables.modes?.transportModes
? {
...tripQueryVariables.modes,
accessMode: undefined,
egressMode: undefined,
}
: undefined,
Expand Down

0 comments on commit 1cc877e

Please sign in to comment.