sr-npm 1.7.661 → 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.661",
3
+ "version": "1.7.662",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -249,9 +249,6 @@ async function loadJobs(_$w) {
249
249
  for (const [, values] of selectedByField.entries()) {
250
250
  for(job of finalFilteredJobs) {
251
251
  if(filterByField===JOBS_COLLECTION_FIELDS.CITY_TEXT){
252
- console.log("job[filterByField]: ",job[filterByField])
253
- console.log("values: ",values)
254
- console.log("values.includes(job[filterByField]): ",values.includes(job[filterByField]))
255
252
  //if it is location then we check if selecred values (which is an array) have job city text
256
253
  if(values.includes(job[filterByField])) {
257
254
  if(!addedJobsIds.includes(job._id)) {
@@ -261,17 +258,18 @@ async function loadJobs(_$w) {
261
258
  }
262
259
  }
263
260
  else{
264
- console.log("job[filterByField]: ",job[filterByField])
265
- console.log("values: ",values)
266
- console.log("job[filterByField].some(value=>values.includes(value._id)): ",job[filterByField].some(value=>values.includes(value._id)))
267
- //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)
268
- 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))) {
269
266
  if(!addedJobsIds.includes(job._id)) {
270
267
  tempFilteredJobs.push(job);
271
268
  addedJobsIds.push(job._id);
272
269
  }
273
270
  }
274
271
  }
272
+ }
275
273
  addedJobsIds=[]
276
274
  finalFilteredJobs=tempFilteredJobs;
277
275
  tempFilteredJobs=[];
@@ -281,7 +279,6 @@ async function loadJobs(_$w) {
281
279
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = currentJobs;
282
280
 
283
281
  }
284
- }
285
282
 
286
283
 
287
284
  async function refreshFacetCounts(_$w) {