@civicactions/cmsds-open-data-components 4.1.8-alpha.0 → 4.1.8-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
@@ -1706,8 +1706,10 @@ const $fea9297ba4dd394c$var$HeaderSearch = (props)=>{
1706
1706
  if (window) {
1707
1707
  if ((0, $e873081a6e8f024e$export$1040147c129fdde9)(modalSearchTerm)) {
1708
1708
  setInvalidSearch(false);
1709
- if (window.location.pathname !== '/datasets') navigate(`/datasets?fulltext=${modalSearchTerm}`);
1710
- else {
1709
+ if (window.location.pathname !== '/datasets') {
1710
+ navigate(`/datasets?fulltext=${modalSearchTerm}`);
1711
+ setModalSearch(false);
1712
+ } else {
1711
1713
  window.location.search = `fulltext=${modalSearchTerm}`;
1712
1714
  setModalSearch(false);
1713
1715
  }