From 5bf958ec6b2c1b15b604ed6843c45c731466254d Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Mon, 31 Jan 2022 20:14:09 +0300 Subject: [PATCH] cherry-pick: 4212 fix query log search results Closes #4212. Squashed commit of the following: commit cd854e5bf71953c753c690c28b5571f2c8b1ea0f Merge: 8532ca80 bf9b35b9 Author: Ainar Garipov Date: Mon Jan 31 20:10:17 2022 +0300 Merge branch 'master' into 4212-logs commit 8532ca80d135e4c306ac4d0c999475d77ba51a02 Author: Ildar Kamalov Date: Mon Jan 31 19:22:52 2022 +0300 fix lint commit 1a85074180d95d7a7aad854c75a7a811aee719e9 Author: Ildar Kamalov Date: Mon Jan 31 19:14:54 2022 +0300 client: fix query log search results --- client/src/reducers/queryLogs.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/reducers/queryLogs.js b/client/src/reducers/queryLogs.js index 19d92afb..1575c62d 100644 --- a/client/src/reducers/queryLogs.js +++ b/client/src/reducers/queryLogs.js @@ -28,11 +28,7 @@ const queryLogs = handleActions( }; }, - [actions.setLogsFilterRequest]: (state, { payload }) => { - const { filter } = payload; - - return { ...state, filter }; - }, + [actions.setLogsFilterRequest]: (state, { payload }) => ({ ...state, filter: payload }), [actions.getLogsRequest]: (state) => ({ ...state, processingGetLogs: true }), [actions.getLogsFailure]: (state) => ({ ...state, processingGetLogs: false }),