sr-npm 1.7.579 → 1.7.581
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
|
@@ -92,7 +92,7 @@ async function loadJobs(_$w) {
|
|
|
92
92
|
const counter={}
|
|
93
93
|
for (const val of fieldValues) {
|
|
94
94
|
const result=await wixData.queryReferenced(COLLECTIONS.CUSTOM_VALUES, val, CUSTOM_VALUES_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES)
|
|
95
|
-
counter[val.title]=result.
|
|
95
|
+
counter[val.title]=result.totalCount
|
|
96
96
|
}
|
|
97
97
|
countsByFieldId.set(fieldId, new Map(originalOptions.map(o => [o.value, counter[o.label]])));
|
|
98
98
|
|
|
@@ -229,7 +229,8 @@ async function refreshFacetCounts(_$w) {
|
|
|
229
229
|
const counts = new Map(); // valueId -> count
|
|
230
230
|
for (const job of jobs) {
|
|
231
231
|
const referencedfield= await wixData.queryReferenced(COLLECTIONS.JOBS, job, JOBS_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES)
|
|
232
|
-
|
|
232
|
+
console.log("referencedfield: ",referencedfield)
|
|
233
|
+
const vals = referencedfield.items
|
|
233
234
|
//const vals = job[JOB_VALUES_FIELD] || [];
|
|
234
235
|
for (const val of vals) {
|
|
235
236
|
if (optionSet.has(val._id)) {
|