sr-npm 1.7.1203 → 1.7.1205
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
|
@@ -458,16 +458,16 @@ function getValueFromValueId(valueIds, value) {
|
|
|
458
458
|
|
|
459
459
|
function updateOptionsUI(_$w,fieldTitle, fieldId, searchQuery,clearAll=false) {
|
|
460
460
|
let base = optionsByFieldId.get(fieldId) || [];
|
|
461
|
-
let countsMap;
|
|
461
|
+
let countsMap=countsByFieldId.get(fieldId) || new Map();
|
|
462
462
|
//const countsMap = countsByFieldId.get(fieldId) || new Map();
|
|
463
463
|
if(considerAllJobs)
|
|
464
464
|
{
|
|
465
|
+
|
|
465
466
|
const selectedFieldId=Array.from( selectedByField.keys() )[0]
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
countsMap = countsByFieldId.get(fieldId) || new Map();
|
|
467
|
+
if(selectedFieldId===fieldId) {
|
|
468
|
+
const relevantFields=allvaluesobjects.filter(val=>val.customField===selectedFieldId)
|
|
469
|
+
countsMap = new Map(relevantFields.map(val=>[val.valueId, val.count]));
|
|
470
|
+
}
|
|
471
471
|
}
|
|
472
472
|
if(dontUpdateThisCheckBox===fieldId && !clearAll && selectedByField.has(fieldId) )
|
|
473
473
|
{
|