@openstax/ts-utils 1.50.1 → 1.50.2

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.
@@ -105,7 +105,7 @@ export const openSearchService = (initializer = {}) => (configProvider) => {
105
105
  bool.filter = filter.map(mapFilter);
106
106
  }
107
107
  if (must && must.length > 0) {
108
- const existing = bool.must instanceof Array ? bool.must : isDefined(bool.must) ? [bool.must] : [];
108
+ const existing = bool.must instanceof Array ? bool.must : [];
109
109
  bool.must = existing.concat(must.map(mapFilter));
110
110
  }
111
111
  if (must_not && must_not.length > 0) {