Skip to content

Commit 6b1c9e2

Browse files
committed
Blacklist facet props intead of whitelist
1 parent e9a47be commit 6b1c9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search-lib/AppSearchAPIConnector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import * as SwiftypeAppSearch from "swiftype-app-search-javascript";
1111
function toAPIFacetSyntax(facetConfig = {}) {
1212
return Object.entries(facetConfig).reduce((acc, [key, value]) => {
1313
acc[key] = Object.entries(value).reduce((propAcc, [propKey, propValue]) => {
14-
if (["type", "size", "ranges"].includes(propKey)) {
14+
if (!["disjunctive", "conditional"].includes(propKey)) {
1515
propAcc[propKey] = propValue;
1616
}
1717
return propAcc;

0 commit comments

Comments
 (0)