mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 03:02:07 +03:00
2475 Inline a handler for consistency's sake
* commit '4cc68341865f5ccae294ec63103911cb032be3a0': Inline a handler for consistency's sake
This commit is contained in:
commit
6a5bd99eed
@ -24,13 +24,7 @@ const access = handleActions(
|
|||||||
|
|
||||||
[actions.setAccessListRequest]: (state) => ({ ...state, processingSet: true }),
|
[actions.setAccessListRequest]: (state) => ({ ...state, processingSet: true }),
|
||||||
[actions.setAccessListFailure]: (state) => ({ ...state, processingSet: false }),
|
[actions.setAccessListFailure]: (state) => ({ ...state, processingSet: false }),
|
||||||
[actions.setAccessListSuccess]: (state) => {
|
[actions.setAccessListSuccess]: (state) => ({ ...state, processingSet: false }),
|
||||||
const newState = {
|
|
||||||
...state,
|
|
||||||
processingSet: false,
|
|
||||||
};
|
|
||||||
return newState;
|
|
||||||
},
|
|
||||||
|
|
||||||
[actions.toggleClientBlockRequest]: (state) => ({ ...state, processingSet: true }),
|
[actions.toggleClientBlockRequest]: (state) => ({ ...state, processingSet: true }),
|
||||||
[actions.toggleClientBlockFailure]: (state) => ({ ...state, processingSet: false }),
|
[actions.toggleClientBlockFailure]: (state) => ({ ...state, processingSet: false }),
|
||||||
|
Loading…
Reference in New Issue
Block a user