We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7679130 commit 888f935Copy full SHA for 888f935
src/index.js
@@ -27,7 +27,7 @@ export default function instantMeiliSearch(hostUrl, apiKey, options = {}) {
27
// formattedHit is the `_formatted` object returned by MeiliSearch.
28
// It contains all the highlighted attributes
29
return Object.keys(formattedHit).reduce((result, key) => {
30
- let newHighlightString = formattedHit[key]
+ let newHighlightString = formattedHit[key] || ''
31
// If the value of the attribute is a string,
32
// the highlight is applied by MeiliSearch (<em> tags)
33
// and we replace the <em> by the expected tag for InstantSearch
0 commit comments