Change rLists selector
This commit is contained in:
parent
54ca8c4320
commit
9ebfc927d0
2 changed files with 5 additions and 15 deletions
7
dist/bundle.es.js
vendored
7
dist/bundle.es.js
vendored
|
@ -3697,11 +3697,8 @@ const makeSelectCollectionForId = id => reselect.createSelector(selectBuiltinCol
|
|||
return collection;
|
||||
});
|
||||
|
||||
const makeSelectClaimUrlInCollection = url => reselect.createSelector(selectBuiltinCollections, selectResolvedCollections, selectMyUnpublishedCollections, selectMyEditedCollections, selectPendingCollections, selectMyCollectionIds, (bLists, rLists, uLists, eLists, pLists, myIds) => {
|
||||
Object.entries(rLists).filter(([key, val]) => myIds.includes(key) &&
|
||||
// $FlowFixMe
|
||||
!pLists[key]);
|
||||
const collections = [bLists, uLists, eLists, rLists, pLists];
|
||||
const makeSelectClaimUrlInCollection = url => reselect.createSelector(selectBuiltinCollections, selectMyPublishedCollections, selectMyUnpublishedCollections, selectMyEditedCollections, selectPendingCollections, (bLists, myRLists, uLists, eLists, pLists) => {
|
||||
const collections = [bLists, uLists, eLists, myRLists, pLists];
|
||||
const itemsInCollections = [];
|
||||
collections.map(list => {
|
||||
Object.entries(list).forEach(([key, value]) => {
|
||||
|
|
|
@ -166,19 +166,12 @@ export const makeSelectCollectionForId = (id: string) =>
|
|||
export const makeSelectClaimUrlInCollection = (url: string) =>
|
||||
createSelector(
|
||||
selectBuiltinCollections,
|
||||
selectResolvedCollections,
|
||||
selectMyPublishedCollections,
|
||||
selectMyUnpublishedCollections,
|
||||
selectMyEditedCollections,
|
||||
selectPendingCollections,
|
||||
selectMyCollectionIds,
|
||||
(bLists, rLists, uLists, eLists, pLists, myIds) => {
|
||||
Object.entries(rLists).filter(
|
||||
([key, val]) =>
|
||||
myIds.includes(key) &&
|
||||
// $FlowFixMe
|
||||
!pLists[key]
|
||||
);
|
||||
const collections = [bLists, uLists, eLists, rLists, pLists];
|
||||
(bLists, myRLists, uLists, eLists, pLists) => {
|
||||
const collections = [bLists, uLists, eLists, myRLists, pLists];
|
||||
const itemsInCollections = [];
|
||||
collections.map(list => {
|
||||
Object.entries(list).forEach(([key, value]) => {
|
||||
|
|
Loading…
Reference in a new issue