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 cfd5d78 commit a01e585Copy full SHA for a01e585
src/index.ts
@@ -37,7 +37,7 @@ export function instantMeiliSearch(
37
// Creates search params object compliant with MeiliSearch
38
return {
39
q: query,
40
- ...(facets && { facetsDistribution: facets }),
+ ...(facets?.length && { facetsDistribution: facets }),
41
...(facetFilters && { facetFilters }),
42
...(attributesToCrop && { attributesToCrop }),
43
...(attributesToRetrieve && { attributesToRetrieve }),
0 commit comments