Filter rLists

This commit is contained in:
saltrafael 2021-07-19 13:57:16 -03:00 committed by jessopb
parent bee9bf38dd
commit 54ca8c4320
2 changed files with 12 additions and 2 deletions

5
dist/bundle.es.js vendored
View file

@ -3697,7 +3697,10 @@ const makeSelectCollectionForId = id => reselect.createSelector(selectBuiltinCol
return collection;
});
const makeSelectClaimUrlInCollection = url => reselect.createSelector(selectBuiltinCollections, selectResolvedCollections, selectMyUnpublishedCollections, selectMyEditedCollections, selectPendingCollections, (bLists, rLists, uLists, eLists, pLists) => {
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 itemsInCollections = [];
collections.map(list => {

View file

@ -170,7 +170,14 @@ export const makeSelectClaimUrlInCollection = (url: string) =>
selectMyUnpublishedCollections,
selectMyEditedCollections,
selectPendingCollections,
(bLists, rLists, uLists, eLists, pLists) => {
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 itemsInCollections = [];
collections.map(list => {