sr-npm 1.7.289 → 1.7.291
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 +1 -1
- package/pages/careersPage.js +8 -12
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -343,19 +343,15 @@ async function handleLocationParam(_$w,location) {
|
|
|
343
343
|
}
|
|
344
344
|
console.log("dropdown options after fix: ", _$w('#dropdownLocation').options);
|
|
345
345
|
|
|
346
|
-
let
|
|
346
|
+
let checkme=_$w('#dropdownLocation').options.find(option => option.value.toLowerCase() === locationValue.toLowerCase())
|
|
347
347
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
await applyFilters(_$w, true); // Skip URL
|
|
356
|
-
}
|
|
357
|
-
})
|
|
358
|
-
if (!appliedFilter) {
|
|
348
|
+
console.log("checkme is: ", checkme);
|
|
349
|
+
if(checkme){
|
|
350
|
+
console.log("location value found in dropdown options");
|
|
351
|
+
_$w('#dropdownLocation').value = checkme.value;
|
|
352
|
+
await applyFilters(_$w, true); // Skip URL update since we're handling initial URL params
|
|
353
|
+
}
|
|
354
|
+
else{
|
|
359
355
|
console.warn("location value not found in dropdown options");
|
|
360
356
|
queryParams.remove(["location"]);
|
|
361
357
|
}
|