@civicactions/cmsds-open-data-components 4.0.18 → 4.0.19-alpha.1

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.
package/dist/main.js CHANGED
@@ -1509,7 +1509,12 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1509
1509
  };
1510
1510
  function updateSelectedFacets(key, value) {
1511
1511
  const newFacets = {
1512
- ...selectedFacets
1512
+ theme: [
1513
+ ...selectedFacets.theme
1514
+ ],
1515
+ keyword: [
1516
+ ...selectedFacets.keyword
1517
+ ]
1513
1518
  };
1514
1519
  if (key === 'theme') {
1515
1520
  const existingFacet = newFacets.theme.findIndex((s)=>s === value);
@@ -1521,16 +1526,7 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
1521
1526
  if (existingFacet > -1) newFacets.keyword.splice(existingFacet, 1);
1522
1527
  else newFacets.keyword.push(value);
1523
1528
  }
1524
- const urlString = (0, $hgUW1$qs).stringify({
1525
- theme: newFacets.theme,
1526
- keyword: newFacets.keyword
1527
- }, {
1528
- encodeValuesOnly: true,
1529
- addQueryPrefix: true
1530
- });
1531
1529
  setSelectedFacets(newFacets);
1532
- const url = new URL(window.location.href);
1533
- window.history.pushState({}, '', `${url.origin}${url.pathname}${urlString}`);
1534
1530
  }
1535
1531
  const pageSize = defaultPageSize;
1536
1532
  function resetFilters() {