sr-npm 1.7.144 → 1.7.146
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 +4 -20
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { getAllPositions } = require('../backend/queries');
|
|
2
2
|
const {wixData} = require('wix-data');
|
|
3
3
|
const { window } = require('@wix/site-window');
|
|
4
|
-
const { query,queryParams,to } = require("wix-location-frontend");
|
|
4
|
+
const { query,queryParams,to,url } = require("wix-location-frontend");
|
|
5
5
|
const {
|
|
6
6
|
debounce,
|
|
7
7
|
getFilter,
|
|
@@ -264,9 +264,7 @@ async function handleDepartmentParam(_$w,department) {
|
|
|
264
264
|
console.log("department inside handleDepartmentParam", departmentValue);
|
|
265
265
|
|
|
266
266
|
// Debug: Check dropdown options
|
|
267
|
-
|
|
268
|
-
await _$w('#dataset2').refresh();
|
|
269
|
-
});
|
|
267
|
+
|
|
270
268
|
console.log("after refresh");
|
|
271
269
|
const dropdownOptions = _$w('#dropdownDepartment').options;
|
|
272
270
|
console.log("dropdown options:", dropdownOptions);
|
|
@@ -275,25 +273,11 @@ async function handleDepartmentParam(_$w,department) {
|
|
|
275
273
|
_$w('#dropdownDepartment').value = departmentValue;
|
|
276
274
|
console.log("after setting, dropdown value:", _$w('#dropdownDepartment').value);
|
|
277
275
|
|
|
278
|
-
// If value didn't set, try finding exact match
|
|
279
|
-
if (!_$w('#dropdownDepartment').value) {
|
|
280
|
-
const matchingOption = dropdownOptions.find(option =>
|
|
281
|
-
option.label.toLowerCase() === departmentValue.toLowerCase() ||
|
|
282
|
-
option.value.toLowerCase() === departmentValue.toLowerCase()
|
|
283
|
-
);
|
|
284
|
-
|
|
285
|
-
if (matchingOption) {
|
|
286
|
-
console.log("found matching option:", matchingOption);
|
|
287
|
-
_$w('#dropdownDepartment').value = matchingOption.value;
|
|
288
|
-
console.log("after setting matching option, dropdown value:", _$w('#dropdownDepartment').value);
|
|
289
|
-
} else {
|
|
290
|
-
console.log("no matching option found for:", departmentValue);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
276
|
console.log("before applyFilters_$w('#dropdownDepartment').value", _$w('#dropdownDepartment').value);
|
|
295
277
|
|
|
296
278
|
await applyFilters(_$w, true); // Skip URL update since we're handling initial URL params
|
|
279
|
+
console.log("url", url);
|
|
280
|
+
await to(url);
|
|
297
281
|
}
|
|
298
282
|
|
|
299
283
|
|