prefer pending and edited collections in selector
This commit is contained in:
parent
1948f63378
commit
7b1cec5d52
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -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 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;
|
return collection;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,7 @@ export const makeSelectCollectionForId = (id: string) =>
|
||||||
selectMyEditedCollections,
|
selectMyEditedCollections,
|
||||||
selectPendingCollections,
|
selectPendingCollections,
|
||||||
(bLists, rLists, uLists, eLists, pLists) => {
|
(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;
|
return collection;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue