From 47fb4fbcc86eaa95091a3460555b7d350ccfd435 Mon Sep 17 00:00:00 2001 From: Julian Torp Date: Tue, 2 Mar 2021 09:13:45 +0100 Subject: [PATCH] fix search query --- src/search/searchReducer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search/searchReducer.js b/src/search/searchReducer.js index d5da30dbe..f4424ef4a 100644 --- a/src/search/searchReducer.js +++ b/src/search/searchReducer.js @@ -147,10 +147,10 @@ function* search() { try { yield put({type: RESET_PAGINATION}); const state = yield select(); - const query = toApiSearchQuery(state.searchQuery); - logAmplitudeEvent('Utførte søk',{ query }); + logAmplitudeEvent('Utførte søk',{ query: state.searchQuery }); + const query = toApiSearchQuery(state.searchQuery); const searchResult = yield call(fetchSearch, query); yield put({type: SEARCH_SUCCESS, response: searchResult}); } catch (e) {