sr-npm 1.7.1244 → 1.7.1246

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.1244",
3
+ "version": "1.7.1246",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -523,11 +523,7 @@ function getValueFromValueId(valueIds, value) {
523
523
 
524
524
  // Sort alphabetically by label
525
525
  filtered.sort((a, b) => (a.label || '').localeCompare(b.label || ''));
526
- // Preserve currently selected values that are still visible
527
- // let prevSelected=[]
528
- // clearAll? prevSelected=[]:prevSelected= _$w(`#${FiltersIds[fieldTitle]}CheckBox`).value;
529
526
  const visibleSet = new Set(filtered.map(o => o.value));
530
- //const preserved = prevSelected.filter(v => visibleSet.has(v));
531
527
  if(filtered.length===0) {
532
528
  _$w(`#${FiltersIds[fieldTitle]}MultiBox`).changeState(`${FiltersIds[fieldTitle]}NoResults`);
533
529
  }
@@ -630,9 +626,8 @@ function handlePaginationButtons(_$w)
630
626
 
631
627
  function handlePageUrlParam() {
632
628
  ActivateURLOnchange=false;
633
- if(pagination.currentPage==1)
629
+ if(pagination.currentPage==1 || pagination.currentPage==0)
634
630
  {
635
-
636
631
  queryParams.remove(["page"]);
637
632
  }
638
633
  else{