sr-npm 1.7.613 → 1.7.615
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
|
@@ -234,7 +234,7 @@ async function refreshFacetCounts(_$w) {
|
|
|
234
234
|
// return;
|
|
235
235
|
// }
|
|
236
236
|
|
|
237
|
-
|
|
237
|
+
console.log("current countsByFieldId: ",countsByFieldId)
|
|
238
238
|
const fieldIds = Array.from(optionsByFieldId.keys());
|
|
239
239
|
for (const fieldId of fieldIds) {
|
|
240
240
|
let currentoptions=optionsByFieldId.get(fieldId)
|
|
@@ -243,13 +243,13 @@ async function refreshFacetCounts(_$w) {
|
|
|
243
243
|
for(const option of currentoptions) {
|
|
244
244
|
for (const jobId of currentJobs) {
|
|
245
245
|
if (valueToJobs[option.value].includes(jobId)) {
|
|
246
|
-
counter.set(option.value, (
|
|
246
|
+
counter.set(option.value, (counter.get(option.value) || 0) + 1);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
countsByFieldId.set(fieldId, counter);
|
|
251
251
|
}
|
|
252
|
-
|
|
252
|
+
console.log("new countsByFieldId: ",countsByFieldId)
|
|
253
253
|
// for (const valueId of Object.keys(valueToJobs)) {
|
|
254
254
|
// for (const jobId of currentJobs) {
|
|
255
255
|
// if (valueToJobs[valueId].includes(jobId)) {
|