Merge pull request #177 from lbryio/blankTitles
prevents crash on blank titles
This commit is contained in:
commit
3098aa2d5e
2 changed files with 4 additions and 4 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue