diff --git a/src/globalState/AutoCompleteContext.js b/src/globalState/AutoCompleteContext.js index c4923f8..744fd1c 100644 --- a/src/globalState/AutoCompleteContext.js +++ b/src/globalState/AutoCompleteContext.js @@ -124,12 +124,13 @@ export const AutoCompleteProvider = (props) => { // Used to reset everything case 'RESET_SELECTED_SERVICES': getAllSearchParams().forEach((param) => { - delSearchParam(param.name); + if (param.name !== 'ticketSearch') { + delSearchParam(param.name); + } }); return { + ...initialState, mapRef: state.mapRef, - queries: initialState.queries, - selectedStations: initialState.selectedStations, }; // Default should return intial state if error default: