@fluid-topics/ft-wc-utils 1.2.61 → 1.2.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,7 +71,8 @@ export class SearchPlaceConverter {
71
71
  if (((_a = request.query) === null || _a === void 0 ? void 0 : _a.length) > 0) {
72
72
  params.append(SearchPlaceQueryParams.QUERY, request.query);
73
73
  }
74
- const valueFilters = (_c = (_b = request.metadataFilters) === null || _b === void 0 ? void 0 : _b.filter(f => f.valueFilter)) !== null && _c !== void 0 ? _c : [];
74
+ // Only extract non-negative valueFilter since they are not supported by URLSearchParams
75
+ const valueFilters = (_c = (_b = request.metadataFilters) === null || _b === void 0 ? void 0 : _b.filter(f => { var _a; return ((_a = f.valueFilter) === null || _a === void 0 ? void 0 : _a.negative) === false; })) !== null && _c !== void 0 ? _c : [];
75
76
  if (valueFilters.length > 0) {
76
77
  const serializedValues = valueFilters.map(f => {
77
78
  var _a, _b;