sr-npm 1.7.352 → 1.7.353

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.352",
3
+ "version": "1.7.353",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -323,19 +323,20 @@ async function applyFilters(_$w, skipUrlUpdate = false) {
323
323
  if (!skipUrlUpdate) {
324
324
  if(filter.field === 'title'){
325
325
  queryParams.add({ keyWord: filter.value });
326
- // queryKeyWordVar=filter.value;
327
326
  }
328
327
  if(filter.field === 'department'){
329
328
  queryParams.add({ department: encodeURIComponent(filter.value) });
330
- //queryDepartmentVar=filter.value;
331
329
  }
332
330
  if(filter.field === 'cityText'){
333
331
  queryParams.add({ location: encodeURIComponent(filter.value) });
334
- //queryLocationVar=filter.value;
335
332
  }
336
333
  if(filter.field === 'remote'){
337
- queryParams.add({ jobType: encodeURIComponent(filter.value) });
338
- //queryJobTypeVar=filter.value;
334
+ if(filter.value === 'true'){
335
+ queryParams.add({ jobType: encodeURIComponent("remote") });
336
+ }
337
+ else{
338
+ queryParams.add({ jobType: encodeURIComponent("onsite") });
339
+ }
339
340
  }
340
341
  }
341
342
  if(filter.field === 'remote') {
@@ -349,22 +350,18 @@ async function applyFilters(_$w, skipUrlUpdate = false) {
349
350
  if (!skipUrlUpdate) {
350
351
  if(filter.field === 'title'){
351
352
  queryParams.remove(["keyWord" ]);
352
- // queryKeyWordVar=undefined;
353
353
  }
354
354
  if(filter.field === 'department'){
355
355
  console.log("removing department from url")
356
356
  queryParams.remove(["department" ]);
357
- // queryDepartmentVar=undefined;
358
357
  }
359
358
  if(filter.field === 'cityText'){
360
359
  console.log("removing location from url")
361
360
  queryParams.remove(["location" ]);
362
- // queryLocationVar=undefined;
363
361
  }
364
362
  if(filter.field === 'remote'){
365
363
  console.log("removing jobType from url")
366
364
  queryParams.remove(["jobType" ]);
367
- // queryJobTypeVar=undefined;
368
365
  }
369
366
  }
370
367
  }