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 fe0e219 commit c22a372Copy full SHA for c22a372
packages/autocomplete-client/src/search/fetchMeilisearchResults.ts
@@ -167,8 +167,8 @@ function isDefinedHighlightValue(
167
input: PossibleHighlightResult
168
): input is DefinedHighlightResult {
169
if (Array.isArray(input)) {
170
- return input.every((r) => r.value !== undefined)
+ return input.every((r) => typeof r.value === 'string')
171
}
172
173
- return input.value !== undefined
+ return typeof input.value === 'string'
174
0 commit comments