From e0da7357ce0c5d65a5aa23c97f65d2b96eab3309 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 17 Feb 2022 12:28:12 +0100 Subject: [PATCH] fix(ui) - do not call api on filter change --- frontend/app/duck/liveSearch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/duck/liveSearch.js b/frontend/app/duck/liveSearch.js index 6c1b49e31..bebdc9a35 100644 --- a/frontend/app/duck/liveSearch.js +++ b/frontend/app/duck/liveSearch.js @@ -49,10 +49,10 @@ const reduceThenFetchResource = actionCreator => (...args) => (dispatch, getStat return dispatch(fetchSessionList(filter)); }; -export const edit = reduceThenFetchResource((instance) => ({ +export const edit = (instance) => ({ type: EDIT, instance, -})); +}); export const applyFilter = reduceThenFetchResource((filter, fromUrl=false) => ({ type: APPLY,