sr-npm 1.7.660 → 1.7.662

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.660",
3
+ "version": "1.7.662",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -258,14 +258,18 @@ async function loadJobs(_$w) {
258
258
  }
259
259
  }
260
260
  else{
261
- //if it is not location then we check if selecred values (which is an array) have one of the job values (whcih is also an array)
262
- if(job[filterByField].some(value=>values.includes(value._id))) {
261
+
262
+ console.log("jobVal: ",jobVal)
263
+ console.log("jobVal.some(value=>values.includes(value._id)): ",jobVal.some(value=>values.includes(value._id)))
264
+ //if it is not location then we check if selecred values (which is an array) have one of the job values (whcih is also an array)
265
+ if(jobVal.some(value=>values.includes(value._id))) {
263
266
  if(!addedJobsIds.includes(job._id)) {
264
267
  tempFilteredJobs.push(job);
265
268
  addedJobsIds.push(job._id);
266
269
  }
267
270
  }
268
271
  }
272
+ }
269
273
  addedJobsIds=[]
270
274
  finalFilteredJobs=tempFilteredJobs;
271
275
  tempFilteredJobs=[];
@@ -275,7 +279,6 @@ async function loadJobs(_$w) {
275
279
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = currentJobs;
276
280
 
277
281
  }
278
- }
279
282
 
280
283
 
281
284
  async function refreshFacetCounts(_$w) {