Collections #383
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue