check against value not just _source

This commit is contained in:
Mark Beamer Jr 2018-06-20 22:17:59 -04:00
parent 20eedbc660
commit dfcc5e3ef4

View file

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