diff --git a/dist/bundle.es.js b/dist/bundle.es.js index c138c15..14e4c16 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -1533,7 +1533,7 @@ const makeSelectRecommendedContentForUri = uri => reselect.createSelector(makeSe const { title } = claim.value; - const searchQuery = getSearchQueryString(title.replace(/\//, ' ')); + const searchQuery = getSearchQueryString(title ? title.replace(/\//, ' ') : ''); let searchUris = searchUrisByQuery[searchQuery]; if (searchUris) { diff --git a/src/redux/selectors/claims.js b/src/redux/selectors/claims.js index 7c477dc..eac3390 100644 --- a/src/redux/selectors/claims.js +++ b/src/redux/selectors/claims.js @@ -223,8 +223,8 @@ export const makeSelectDateForUri = (uri: string) => (claim.value.release_time ? claim.value.release_time * 1000 : claim.meta.creation_timestamp - ? claim.meta.creation_timestamp * 1000 - : null); + ? claim.meta.creation_timestamp * 1000 + : null); if (!timestamp) { return undefined; } @@ -456,7 +456,7 @@ export const makeSelectRecommendedContentForUri = (uri: string) => const { title } = claim.value; - const searchQuery = getSearchQueryString(title.replace(/\//, ' ')); + const searchQuery = getSearchQueryString(title ? title.replace(/\//, ' ') : ''); let searchUris = searchUrisByQuery[searchQuery]; if (searchUris) {