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

Fixes #2112
pull/2110/head v1.17.0.4448
Bogdan 2 weeks ago
parent b223e9b0cc
commit b29bc923fc

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

Loading…
Cancel
Save