Merge pull request #79 from lbryio/server_error

Fixed bug caused by blank claims ( deleted ).
This commit is contained in:
Mark 2018-06-20 22:01:06 -04:00 committed by GitHub
commit 0472ba7705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,7 +262,7 @@ class LighthouseControllers {
let cResults = [];
for (let pResult of results) {
cResults.push(pResult._source.name);
if (pResult._source.value.stream !== undefined) {
if (pResult._source && pResult._source.value.stream !== undefined) {
cResults.push(pResult._source.value.stream.metadata.title);
cResults.push(pResult._source.value.stream.metadata.author);
}