sr-npm 1.7.622 → 1.7.623

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.622",
3
+ "version": "1.7.623",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -101,8 +101,8 @@ async function loadJobs(_$w) {
101
101
  // Build CheckboxGroup options for this field
102
102
  const fieldValues = valuesByFieldId.get(fieldId) || [];
103
103
  const originalOptions = fieldValues.map(v => ({
104
- valueLabel: v.title ,
105
- valueId: v._id
104
+ label: v.title ,
105
+ value: v._id
106
106
  }));
107
107
  optionsByFieldId.set(fieldId, originalOptions);
108
108
  console.log("optionsByFieldId: ",optionsByFieldId)
@@ -259,8 +259,8 @@ async function refreshFacetCounts(_$w) {
259
259
  const opts = optionsByFieldId.get(fieldId) || [];
260
260
  //const byId = new Map(opts.map(o => [o.value, o.label]));
261
261
  for (const id of valueIds) {
262
- const found = opts.find((option) => option.valueId === id);
263
- const label = found.valueLabel;
262
+ const found = opts.find((option) => option.value === id);
263
+ const label = found.label;
264
264
  //selectedItems.push({ _id: `${fieldId}:${id}`, label, fieldId, valueId: id });
265
265
  selectedItems.push({ label, fieldId, _id: id }); //_id is the valueId
266
266
  }