Separating artist albums

This commit is contained in:
James Barnsley
2020-09-23 20:59:06 +12:00
parent d46ff41106
commit 4fbf64169c
7 changed files with 53 additions and 59 deletions

View File

@ -4,13 +4,13 @@ import { isLoading } from './helpers';
const getItems = (state) => state.core.items;
const makeItemSelector = (uris) => createSelector(
const makeItemSelector = (uriOrUris) => createSelector(
[getItems],
(items) => {
if (Array.isArray(uris)) {
return indexToArray(items, uris);
if (Array.isArray(uriOrUris)) {
return indexToArray(items, uriOrUris);
}
return items[uris];
return items[uriOrUris];
},
);