sr-npm 1.7.661 → 1.7.663

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.663",
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,15 @@ 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
+ //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))) {
269
263
  if(!addedJobsIds.includes(job._id)) {
270
264
  tempFilteredJobs.push(job);
271
265
  addedJobsIds.push(job._id);
272
266
  }
273
267
  }
274
268
  }
269
+ }
275
270
  addedJobsIds=[]
276
271
  finalFilteredJobs=tempFilteredJobs;
277
272
  tempFilteredJobs=[];
@@ -281,7 +276,6 @@ async function loadJobs(_$w) {
281
276
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = currentJobs;
282
277
 
283
278
  }
284
- }
285
279
 
286
280
 
287
281
  async function refreshFacetCounts(_$w) {