Merge pull request #61 from lbryio/autocomplete_fix

The internal server error was because we were checking for a null val…
This commit is contained in:
filipnyquist 2018-04-08 09:17:02 +02:00 committed by GitHub
commit b76b7b7a58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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