sr-npm 1.7.696 → 1.7.697

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.696",
3
+ "version": "1.7.697",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,7 +2,6 @@ const { COLLECTIONS,CUSTOM_VALUES_COLLECTION_FIELDS,JOBS_COLLECTION_FIELDS } = r
2
2
  const { items: wixData } = require('@wix/data');
3
3
  const {CAREERS_MULTI_BOXES_PAGE_CONSTS,FiltersIds} = require('../backend/careersMultiBoxesPageIds');
4
4
  const { groupValuesByField } = require('./pagesUtils');
5
- let valuesByFieldIdGlobal = null;
6
5
  let dontUpdateThisCheckBox;
7
6
  const selectedByField = new Map(); // fieldId -> array of selected value IDs
8
7
  const optionsByFieldId = new Map(); // fieldId -> [{label, value}] array of objects with label which is the valueLabel and value which is the valueId
@@ -86,7 +85,6 @@ async function loadSelectedValuesRepeater(_$w) {
86
85
  }
87
86
 
88
87
  async function loadData(_$w) {
89
-
90
88
  if(alljobs.length===0) {
91
89
  alljobs=await getAllRecords(COLLECTIONS.JOBS);
92
90
  currentJobs=alljobs;
@@ -131,7 +129,6 @@ async function loadJobsRepeater(_$w) {
131
129
  // 2) Load all values once and group them by referenced field
132
130
  let valuesByFieldId = groupValuesByField(allvaluesobjects, CUSTOM_VALUES_COLLECTION_FIELDS.CUSTOM_FIELD);
133
131
  valuesByFieldId.set("Location",cities)
134
- valuesByFieldIdGlobal = valuesByFieldId; // store globally
135
132
 
136
133
  // Build CheckboxGroup options for this field
137
134