@civicactions/cmsds-open-data-components 3.7.4 → 3.7.5
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 +4 -0
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -3596,6 +3596,10 @@ const $e873081a6e8f024e$var$DatasetSearch = (props)=>{
|
|
|
3596
3596
|
}
|
|
3597
3597
|
const pageSize = defaultPageSize;
|
|
3598
3598
|
(0, $hgUW1$useEffect)(()=>{
|
|
3599
|
+
// Update browser URL with current search params
|
|
3600
|
+
const params = buildSearchParams(true);
|
|
3601
|
+
const url = new URL(window.location.href);
|
|
3602
|
+
window.history.pushState({}, "", `${url.origin}${url.pathname}${params}`);
|
|
3599
3603
|
const baseNumber = Number(totalItems) > 0 ? 1 : 0;
|
|
3600
3604
|
const startingNumber = baseNumber + (Number(pageSize) * Number(page) - Number(pageSize));
|
|
3601
3605
|
const endingNumber = Number(pageSize) * Number(page);
|