sr-npm 1.7.1104 → 1.7.1105

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.1104",
3
+ "version": "1.7.1105",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -434,6 +434,11 @@ function getValueFromValueId(valueIds,value) {
434
434
  console.log("FiltersIds[fieldTitle]: ",FiltersIds[fieldTitle]);
435
435
  console.log("_$w(`#${FiltersIds[fieldTitle]}CheckBox`) ",_$w(`#${FiltersIds[fieldTitle]}CheckBox`));
436
436
  clearAll? prevSelected=[]:prevSelected= _$w(`#${FiltersIds[fieldTitle]}CheckBox`).value;
437
+ if(prevSelected===undefined) {
438
+ //to handle visiblity in external and internal poages
439
+ return;
440
+ }
441
+
437
442
  const visibleSet = new Set(filtered.map(o => o.value));
438
443
  const preserved = prevSelected.filter(v => visibleSet.has(v));
439
444
  if(filtered.length===0) {