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 697ce35 commit 61bc05fCopy full SHA for 61bc05f
view/frontend/web/internals/common.js
@@ -98,15 +98,14 @@ requirejs(['algoliaBundle'], function(algoliaBundle) {
98
var colors = [];
99
100
$.each(hit._highlightResult.color, function (i, color) {
101
- if (color.matchLevel === 'none') {
+ if (color.matchLevel === undefined || color.matchLevel === 'none') {
102
return;
103
}
104
105
colors.push(color.value);
106
107
if (algoliaConfig.useAdaptiveImage === true) {
108
var matchedColor = color.matchedWords.join(' ');
109
-
110
if (hit.images_data && color.fullyHighlighted && color.fullyHighlighted === true) {
111
matchedColors.push(matchedColor);
112
0 commit comments