Collections #383

Merged
jessopb merged 20 commits from collections into master 2021-06-08 17:51:49 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 5cd9e7601c - Show all commits

2
dist/bundle.es.js vendored
View file

@ -3695,7 +3695,7 @@ const makeSelectClaimIdsForCollectionId = id => reselect.createSelector(makeSele
});
const makeSelectIndexForUrlInCollection = (url, id) => reselect.createSelector(makeSelectUrlsForCollectionId(id), urls => {
const index = urls.findIndex(u => u === url);
const index = urls && urls.findIndex(u => u === url);
if (index > -1) {
return index;
}

View file

@ -188,7 +188,7 @@ export const makeSelectIndexForUrlInCollection = (url: string, id: string) =>
createSelector(
makeSelectUrlsForCollectionId(id),
urls => {
const index = urls.findIndex(u => u === url);
const index = urls && urls.findIndex(u => u === url);
if (index > -1) {
return index;
}