sr-npm 1.7.625 → 1.7.626

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.625",
3
+ "version": "1.7.626",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,7 +29,6 @@ async function careersMultiBoxesPageOnReady(_$w) {
29
29
 
30
30
  // Deselect this value from both the selected map and the multibox
31
31
  $item(CAREERS_MULTI_BOXES_PAGE_CONSTS.DESELECT_BUTTON_ID).onClick(async () => {
32
- console.log("deselecting value: ",itemData)
33
32
  const fieldId = itemData.fieldId;
34
33
  const valueId = itemData.valueId;
35
34
  if (!fieldId || !valueId) return;
@@ -38,7 +37,6 @@ async function careersMultiBoxesPageOnReady(_$w) {
38
37
  const updated = existing.filter(v => v !== valueId);
39
38
  if (updated.length) {
40
39
  selectedByField.set(fieldId, updated);
41
- console.log("selectedByField: ",selectedByField)
42
40
  } else {
43
41
  selectedByField.delete(fieldId);
44
42
  }
@@ -72,8 +70,6 @@ async function loadJobs(_$w) {
72
70
  }
73
71
 
74
72
  function updateTotalJobsCountText(_$w) {
75
- console.log("updating total jobs count text")
76
- console.log("currentJobs.length: ",currentJobs.length)
77
73
  _$w('#totalJobsCountText').text = `${currentJobs.length} Jobs`;
78
74
  }
79
75
 
@@ -106,7 +102,6 @@ async function loadJobs(_$w) {
106
102
  value: v._id
107
103
  }));
108
104
  optionsByFieldId.set(fieldId, originalOptions);
109
- console.log("optionsByFieldId: ",optionsByFieldId)
110
105
  const counter={}
111
106
 
112
107
  for (const val of allvaluesobjects) {
@@ -114,7 +109,6 @@ async function loadJobs(_$w) {
114
109
  }
115
110
 
116
111
  countsByFieldId.set(fieldId, new Map(originalOptions.map(o => [o.value, counter[o.label]])));
117
- console.log("countsByFieldId: ",countsByFieldId)
118
112
 
119
113
  // Initialize UI
120
114
  updateOptionsUI($item, fieldId, ''); // no search query
@@ -222,7 +216,6 @@ async function loadJobs(_$w) {
222
216
 
223
217
 
224
218
  async function refreshFacetCounts(_$w) {
225
- console.log("current countsByFieldId: ",countsByFieldId)
226
219
  const fieldIds = Array.from(optionsByFieldId.keys());
227
220
  for (const fieldId of fieldIds) {
228
221
  let currentoptions=optionsByFieldId.get(fieldId)
@@ -266,7 +259,6 @@ async function refreshFacetCounts(_$w) {
266
259
  // selectedItems.push({ label, fieldId, _id: id }); //_id is the valueId
267
260
  }
268
261
  }
269
- console.log("selectedItems inside updateSelectedValuesRepeater: ",selectedItems)
270
262
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SELECTED_VALUES_REPEATER).data = selectedItems;
271
263
  }
272
264
 
@@ -277,9 +269,7 @@ async function refreshFacetCounts(_$w) {
277
269
  res = await res.next();
278
270
  newcurrentJobs.push(...res.items.map(job=>job._id));
279
271
  }
280
- console.log("newcurrentJobs inisde new function: ",newcurrentJobs)
281
272
  currentJobs = newcurrentJobs;
282
- console.log("updated currentJobs inisde new function: ",currentJobs)
283
273
  }
284
274
 
285
275
  module.exports = {