New: Persist sort in Select Episodes modal

Closes #7233
pull/7241/head v4.0.9.2421
Mark McDowall 5 months ago committed by Mark McDowall
parent c199fd05d3
commit 106ffd410c

@ -24,6 +24,11 @@ export const defaultState = {
items: [] items: []
}; };
export const persistState = [
'episodeSelection.sortKey',
'episodeSelection.sortDirection'
];
// //
// Actions Types // Actions Types
@ -54,7 +59,9 @@ export const reducers = createHandleActions({
[CLEAR_EPISODES]: (state) => { [CLEAR_EPISODES]: (state) => {
return updateSectionState(state, section, { return updateSectionState(state, section, {
...defaultState ...defaultState,
sortKey: state.sortKey,
sortDirection: state.sortDirection
}); });
} }

Loading…
Cancel
Save