Fixed: Don't reset sorting, columns and selected filter on clear releases

Fixes #2112
This commit is contained in:
Bogdan
2024-04-25 18:42:28 +03:00
parent b223e9b0cc
commit b29bc923fc

View File

@@ -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 }) => {