This commit is contained in:
zeppi 2021-06-08 10:14:36 -04:00
parent 97cd2dbd6a
commit 5cd9e7601c
2 changed files with 2 additions and 2 deletions

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;
}