Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
fix(formatHit): not picking up the best highlighted attr
Browse files Browse the repository at this point in the history
  • Loading branch information
raphi committed Sep 27, 2017
1 parent 8e23d76 commit 9d14b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formatHit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function getBestHighlightedForm(highlightedValues) {
if (highlightedValues[i].matchLevel !== 'none') {
bestAttributes.push({
index: i,
matchedWords: highlightedValues[i].words,
words: highlightedValues[i].matchedWords,
});
}
}
Expand Down

0 comments on commit 9d14b83

Please sign in to comment.