check against value not just _source
This commit is contained in:
parent
20eedbc660
commit
dfcc5e3ef4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue