This commit is contained in:
zeppi 2021-06-08 10:14:36 -04:00 committed by jessopb
parent 503e18be1b
commit 609f13991f
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;
}