Filter rLists
This commit is contained in:
parent
29cd40b132
commit
9d1fe28a0e
2 changed files with 12 additions and 2 deletions
5
dist/bundle.es.js
vendored
5
dist/bundle.es.js
vendored
|
@ -3693,7 +3693,10 @@ const makeSelectCollectionForId = id => reselect.createSelector(selectBuiltinCol
|
||||||
return collection;
|
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 collections = [bLists, uLists, eLists, rLists, pLists];
|
||||||
const itemsInCollections = [];
|
const itemsInCollections = [];
|
||||||
collections.map(list => {
|
collections.map(list => {
|
||||||
|
|
|
@ -170,7 +170,14 @@ export const makeSelectClaimUrlInCollection = (url: string) =>
|
||||||
selectMyUnpublishedCollections,
|
selectMyUnpublishedCollections,
|
||||||
selectMyEditedCollections,
|
selectMyEditedCollections,
|
||||||
selectPendingCollections,
|
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 collections = [bLists, uLists, eLists, rLists, pLists];
|
||||||
const itemsInCollections = [];
|
const itemsInCollections = [];
|
||||||
collections.map(list => {
|
collections.map(list => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue