From 7b1cec5d52c1ce563e4fec73ae8430957545f1bf Mon Sep 17 00:00:00 2001 From: zeppi Date: Fri, 25 Jun 2021 16:53:26 -0400 Subject: [PATCH] prefer pending and edited collections in selector --- dist/bundle.es.js | 2 +- src/redux/selectors/collections.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 0e5d6a1..6eb1d1d 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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; }); diff --git a/src/redux/selectors/collections.js b/src/redux/selectors/collections.js index 3218e2f..24a8038 100644 --- a/src/redux/selectors/collections.js +++ b/src/redux/selectors/collections.js @@ -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; } );