You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/frontend/src/Store/Actions/Creators/Reducers/createSetClientSideCollecti...

15 lines
471 B

import getSectionState from 'Utilities/State/getSectionState';
import updateSectionState from 'Utilities/State/updateSectionState';
function createSetClientSideCollectionFilterReducer(section) {
return (state, { payload }) => {
const newState = getSectionState(state, section);
newState.selectedFilterKey = payload.selectedFilterKey;
return updateSectionState(state, section, newState);
};
}
export default createSetClientSideCollectionFilterReducer;