sr-npm 1.7.130 → 1.7.131

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.130",
3
+ "version": "1.7.131",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -243,7 +243,8 @@ async function updateCount(_$w) {
243
243
  }
244
244
 
245
245
  async function handleDepartmentParam(_$w,department) {
246
- _$w('#dropdownDepartment').value = department;
246
+ console.log("department inside handleDepartmentParam", department.replace('-', ' '));
247
+ _$w('#dropdownDepartment').value = department.replace('-', ' ');
247
248
  await applyFilters(_$w);
248
249
  }
249
250
 
package/pages/homePage.js CHANGED
@@ -16,7 +16,8 @@ async function homePageOnReady(_$w,thisObject) {
16
16
  _$w('#teamRepeater').onItemReady(($item, itemData) => {
17
17
  $item('#teamButton').label = `View ${itemData.count} Open Positions`;
18
18
  $item('#teamButton').onClick(()=>{
19
- location.to(`/positions?department=${itemData._id}`);
19
+ const department=itemData.title.replace(' ', '-');
20
+ location.to(`/positions?department=${department}`);
20
21
  });
21
22
  });
22
23