@abi-software/map-side-bar 1.3.11 → 1.3.12

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.
@@ -231,6 +231,13 @@ module.exports = require("@abi-software/gallery");
231
231
 
232
232
  /***/ }),
233
233
 
234
+ /***/ "3e88":
235
+ /***/ (function(module, exports) {
236
+
237
+ module.exports = require("core-js/modules/es.array.join");
238
+
239
+ /***/ }),
240
+
234
241
  /***/ "429c":
235
242
  /***/ (function(module, exports) {
236
243
 
@@ -1792,6 +1799,9 @@ function () {
1792
1799
 
1793
1800
  return AlgoliaClient;
1794
1801
  }();
1802
+ // EXTERNAL MODULE: external "core-js/modules/es.array.join"
1803
+ var es_array_join_ = __webpack_require__("3e88");
1804
+
1795
1805
  // EXTERNAL MODULE: external "core-js/modules/es.array.last-index-of"
1796
1806
  var es_array_last_index_of_ = __webpack_require__("dc05");
1797
1807
 
@@ -1804,6 +1814,9 @@ var es_array_last_index_of_ = __webpack_require__("dc05");
1804
1814
 
1805
1815
 
1806
1816
 
1817
+
1818
+
1819
+
1807
1820
  /* eslint-disable no-alert, no-console */
1808
1821
  // Mapping between display categories and their Algolia index property path
1809
1822
  // Used for populating the Dataset Search Results facet menu dynamically
@@ -1863,9 +1876,12 @@ function getFilters() {
1863
1876
 
1864
1877
  orFilters = "(".concat(orFilters.substring(0, orFilters.lastIndexOf(" OR ")), ")"); // remove last OR
1865
1878
 
1866
- filters += "".concat(orFilters + andFilters, " AND "); // Put them together
1879
+ filters += "".concat(orFilters + andFilters, " AND "); // Put them together
1867
1880
  // (Note that we add an extra AND in case there are facets at a higher level)
1881
+
1882
+ filters = filters.split('()AND ').join(''); // Handle case where there where no OR facets
1868
1883
  });
1884
+ console.log('filter string: ', filters.substring(0, filters.lastIndexOf(" AND ")));
1869
1885
  return filters.substring(0, filters.lastIndexOf(" AND "));
1870
1886
  }
1871
1887