Fixed: Editing provider/profile settings appearing to affect wrong item

This commit is contained in:
ta264 2020-02-03 21:45:48 +00:00 committed by Qstick
parent 843bc6aabc
commit b592b11b97
16 changed files with 53 additions and 53 deletions

View file

@ -0,0 +1,16 @@
import { createSelector } from 'reselect';
import getSectionState from 'Utilities/State/getSectionState';
function createSortedSectionSelector(section, comparer) {
return createSelector(
(state) => state,
(state) => {
const sectionState = getSectionState(state, section, true);
return {
...sectionState,
items: [...sectionState.items].sort(comparer)
};
}
);
}
export default createSortedSectionSelector;