mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Don't reset sorting, columns and selected filter on clear releases
Fixes #2112
This commit is contained in:
@@ -401,7 +401,16 @@ export const actionHandlers = handleThunks({
|
|||||||
export const reducers = createHandleActions({
|
export const reducers = createHandleActions({
|
||||||
|
|
||||||
[CLEAR_RELEASES]: (state) => {
|
[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 }) => {
|
[UPDATE_RELEASE]: (state, { payload }) => {
|
||||||
|
Reference in New Issue
Block a user