sr-npm 1.7.290 → 1.7.292
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 +6 -20
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -343,27 +343,13 @@ async function handleLocationParam(_$w,location) {
|
|
|
343
343
|
}
|
|
344
344
|
console.log("dropdown options after fix: ", _$w('#dropdownLocation').options);
|
|
345
345
|
|
|
346
|
-
|
|
347
|
-
let checkme;
|
|
348
|
-
console.log("location value is: ", locationValue);
|
|
349
|
-
if (_$w('#dropdownLocation').options.find(option => option.value.toLowerCase() === locationValue.toLowerCase()))
|
|
350
|
-
{
|
|
351
|
-
checkme=option;
|
|
352
|
-
}
|
|
353
|
-
console.log("checkme is: ", checkme);
|
|
346
|
+
const option=_$w('#dropdownLocation').options.find(option => option.value.toLowerCase() === locationValue.toLowerCase())
|
|
354
347
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
console.log("option value is: ", option);
|
|
361
|
-
_$w('#dropdownLocation').value = option.value;
|
|
362
|
-
console.log("i am here!@@##!@#")
|
|
363
|
-
await applyFilters(_$w, true); // Skip URL
|
|
364
|
-
}
|
|
365
|
-
})
|
|
366
|
-
if (!appliedFilter) {
|
|
348
|
+
if(option){
|
|
349
|
+
_$w('#dropdownLocation').value = checkme.value;
|
|
350
|
+
await applyFilters(_$w, true); // Skip URL update since we're handling initial URL params
|
|
351
|
+
}
|
|
352
|
+
else{
|
|
367
353
|
console.warn("location value not found in dropdown options");
|
|
368
354
|
queryParams.remove(["location"]);
|
|
369
355
|
}
|