fix: aws cloudsearch empty fields query

This commit is contained in:
Nick
2019-03-16 18:47:00 -04:00
parent 6eb6eecfa2
commit c236cfdff9
2 changed files with 3 additions and 3 deletions

View File

@@ -167,8 +167,8 @@ module.exports = {
id: r.id,
path: _.head(r.fields.path),
locale: _.head(r.fields.locale),
title: _.head(r.fields.title),
description: _.head(r.fields.description)
title: _.head(r.fields.title) || '',
description: _.head(r.fields.description) || ''
})),
suggestions: suggestions,
totalHits: results.hits.found