mirror of https://github.com/lidarr/Lidarr
13 lines
364 B
JavaScript
13 lines
364 B
JavaScript
import { set } from '../baseActions';
|
|
|
|
function createSetServerSideCollectionFilterHandler(section, getFromState, fetchHandler) {
|
|
return function(payload) {
|
|
return function(dispatch, getState) {
|
|
dispatch(set({ section, ...payload }));
|
|
dispatch(fetchHandler({ page: 1 }));
|
|
};
|
|
};
|
|
}
|
|
|
|
export default createSetServerSideCollectionFilterHandler;
|