sr-npm 1.7.670 → 1.7.672

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.670",
3
+ "version": "1.7.672",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -137,15 +137,16 @@ async function loadJobs(_$w) {
137
137
  let valuesByFieldId = groupValuesByField(allvaluesobjects, CUSTOM_VALUES_COLLECTION_FIELDS.CUSTOM_FIELD);
138
138
  valuesByFieldId.set("Location",cities)
139
139
  valuesByFieldIdGlobal = valuesByFieldId; // store globally
140
- console.log("valuesByFieldId: ",valuesByFieldId)
140
+ console.log("valuesByFieldId: @$##@$@##$ ",valuesByFieldId)
141
141
 
142
- for(const elemenet of Object.keys(valuesByFieldId)) {
142
+ for(const [key, value] of valuesByFieldId) {
143
+ console.log("elemenet: ",key)
143
144
  for(const field of fields) {
144
- if(field._id===elemenet && field.title==="Category") {
145
+ if(field._id===key && field.title==="Category") {
145
146
  updateOptionsUI(_$w,field.title, field._id, ''); // no search query
146
147
  console.log("field: ",field)
147
- console.log("elemenet: ",elemenet)
148
- console.log("valuesByFieldId.get(elemenet): ",valuesByFieldId.get(elemenet))
148
+ console.log("elemenet: ",key)
149
+ console.log("valuesByFieldId.get(elemenet): ",valuesByFieldId.get(key))
149
150
  //_$w("#CategoryCheckBox").options = valuesByFieldId.get(elemenet);
150
151
  _$w(`${field.title}CheckBox`).onChange(async (ev) => {
151
152
  dontUpdateThisCheckBox=field._id;