diff --git a/dist/bundle.es.js b/dist/bundle.es.js index a144d9c..1f957de 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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; } diff --git a/src/redux/selectors/collections.js b/src/redux/selectors/collections.js index b55fa40..92e2cf7 100644 --- a/src/redux/selectors/collections.js +++ b/src/redux/selectors/collections.js @@ -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; }