dont crash

This commit is contained in:
jessop 2019-08-05 17:27:14 -04:00
parent 30c26b6cdd
commit c27c6ba615
2 changed files with 4 additions and 4 deletions

2
dist/bundle.es.js vendored
View file

@ -1533,7 +1533,7 @@ const makeSelectRecommendedContentForUri = uri => reselect.createSelector(makeSe
const { title } = claim.value; const { title } = claim.value;
const searchQuery = getSearchQueryString(title.replace(/\//, ' ')); const searchQuery = getSearchQueryString(title ? title.replace(/\//, ' ') : '');
let searchUris = searchUrisByQuery[searchQuery]; let searchUris = searchUrisByQuery[searchQuery];
if (searchUris) { if (searchUris) {

View file

@ -223,8 +223,8 @@ export const makeSelectDateForUri = (uri: string) =>
(claim.value.release_time (claim.value.release_time
? claim.value.release_time * 1000 ? claim.value.release_time * 1000
: claim.meta.creation_timestamp : claim.meta.creation_timestamp
? claim.meta.creation_timestamp * 1000 ? claim.meta.creation_timestamp * 1000
: null); : null);
if (!timestamp) { if (!timestamp) {
return undefined; return undefined;
} }
@ -456,7 +456,7 @@ export const makeSelectRecommendedContentForUri = (uri: string) =>
const { title } = claim.value; const { title } = claim.value;
const searchQuery = getSearchQueryString(title.replace(/\//, ' ')); const searchQuery = getSearchQueryString(title ? title.replace(/\//, ' ') : '');
let searchUris = searchUrisByQuery[searchQuery]; let searchUris = searchUrisByQuery[searchQuery];
if (searchUris) { if (searchUris) {