sr-npm 1.7.1204 → 1.7.1206

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.1204",
3
+ "version": "1.7.1206",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -274,6 +274,7 @@ async function handleParams(_$w,param,values) {
274
274
  const previousSelectedSize=selectedByField.size;
275
275
  if (updated.length) {
276
276
  selectedByField.set(fieldId, updated);
277
+
277
278
 
278
279
  queryParams.add({ [fieldTitle] : updated.map(val=>encodeURIComponent(val)).join(',') });
279
280
  } else {
@@ -462,10 +463,12 @@ function getValueFromValueId(valueIds, value) {
462
463
  //const countsMap = countsByFieldId.get(fieldId) || new Map();
463
464
  if(considerAllJobs)
464
465
  {
466
+
465
467
  const selectedFieldId=Array.from( selectedByField.keys() )[0]
466
468
  if(selectedFieldId===fieldId) {
467
469
  const relevantFields=allvaluesobjects.filter(val=>val.customField===selectedFieldId)
468
470
  countsMap = new Map(relevantFields.map(val=>[val.valueId, val.count]));
471
+ considerAllJobs=false;
469
472
  }
470
473
  }
471
474
  if(dontUpdateThisCheckBox===fieldId && !clearAll && selectedByField.has(fieldId) )