From b29bc923fc870b9f2c0582ca20db0d16adb541d5 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 25 Apr 2024 18:42:28 +0300 Subject: [PATCH] Fixed: Don't reset sorting, columns and selected filter on clear releases Fixes #2112 --- frontend/src/Store/Actions/releaseActions.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/Store/Actions/releaseActions.js b/frontend/src/Store/Actions/releaseActions.js index bdb3ce2df..fd2fe441b 100644 --- a/frontend/src/Store/Actions/releaseActions.js +++ b/frontend/src/Store/Actions/releaseActions.js @@ -401,7 +401,16 @@ export const actionHandlers = handleThunks({ export const reducers = createHandleActions({ [CLEAR_RELEASES]: (state) => { - return Object.assign({}, state, defaultState); + const { + sortKey, + sortDirection, + customFilters, + selectedFilterKey, + columns, + ...otherDefaultState + } = defaultState; + + return Object.assign({}, state, otherDefaultState); }, [UPDATE_RELEASE]: (state, { payload }) => {