From 1cc877ed4054800e11e32cf81dede0eaf7d156d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Erik=20St=C3=B8wer?= Date: Tue, 21 Nov 2023 22:48:46 +0100 Subject: [PATCH] Decouple access and egress mode selects --- client-next/src/components/SearchBar/AccessSelect.tsx | 2 -- client-next/src/components/SearchBar/EgressSelect.tsx | 2 -- 2 files changed, 4 deletions(-) diff --git a/client-next/src/components/SearchBar/AccessSelect.tsx b/client-next/src/components/SearchBar/AccessSelect.tsx index a2b3e174bd5..d76ea59207a 100644 --- a/client-next/src/components/SearchBar/AccessSelect.tsx +++ b/client-next/src/components/SearchBar/AccessSelect.tsx @@ -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 { @@ -34,7 +33,6 @@ export function AccessSelect({ ? { ...tripQueryVariables.modes, accessMode: undefined, - egressMode: undefined, } : undefined, }); diff --git a/client-next/src/components/SearchBar/EgressSelect.tsx b/client-next/src/components/SearchBar/EgressSelect.tsx index 214e5030a66..916588d08e9 100644 --- a/client-next/src/components/SearchBar/EgressSelect.tsx +++ b/client-next/src/components/SearchBar/EgressSelect.tsx @@ -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, }, }); @@ -33,7 +32,6 @@ export function EgressSelect({ tripQueryVariables.modes?.directMode || tripQueryVariables.modes?.transportModes ? { ...tripQueryVariables.modes, - accessMode: undefined, egressMode: undefined, } : undefined,