mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-25 22:30:51 +02:00
Fixed: Don't reset sorting, columns and selected filter on clear releases
Fixes #2112
This commit is contained in:
parent
b223e9b0cc
commit
b29bc923fc
1 changed files with 10 additions and 1 deletions
|
|
@ -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…
Reference in a new issue