prefer pending and edited collections in selector

This commit is contained in:
zeppi 2021-06-25 16:53:26 -04:00 committed by jessopb
parent 04ce1df03d
commit 4cbb9a35c3
2 changed files with 2 additions and 2 deletions

2
dist/bundle.es.js vendored
View file

@ -3665,7 +3665,7 @@ const makeSelectIsResolvingCollectionForId = id => reselect.createSelector(selec
});
const makeSelectCollectionForId = id => reselect.createSelector(selectBuiltinCollections, selectResolvedCollections, selectMyUnpublishedCollections, selectMyEditedCollections, selectPendingCollections, (bLists, rLists, uLists, eLists, pLists) => {
const collection = bLists[id] || uLists[id] || eLists[id] || rLists[id] || pLists[id];
const collection = bLists[id] || uLists[id] || eLists[id] || pLists[id] || rLists[id];
return collection;
});

View file

@ -158,7 +158,7 @@ export const makeSelectCollectionForId = (id: string) =>
selectMyEditedCollections,
selectPendingCollections,
(bLists, rLists, uLists, eLists, pLists) => {
const collection = bLists[id] || uLists[id] || eLists[id] || rLists[id] || pLists[id];
const collection = bLists[id] || uLists[id] || eLists[id] || pLists[id] || rLists[id];
return collection;
}
);