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 56d5a46 commit 4f89c67Copy full SHA for 4f89c67
packages/instant-meilisearch/src/adapter/search-request-adapter/search-params-adapter.ts
@@ -98,7 +98,8 @@ export function MeiliParamsCreator(searchContext: SearchContext) {
98
addFacets() {
99
const value = <Mutable<typeof facets>>facets
100
if (value !== undefined) {
101
- // TODO: remove deprecated instantsearch packages support and remove string check
+ // despite Instantsearch.js typing it as `string[]`,
102
+ // it still can send `string`
103
meiliSearchParams.facets = typeof value === 'string' ? [value] : value
104
}
105
},
0 commit comments