sr-npm 1.7.145 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.145",
3
+ "version": "1.7.146",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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,
@@ -23,9 +23,6 @@ queryKeyWordVar=query.keyWord;
23
23
  queryDepartmentVar=query.department;
24
24
  console.log("query", query);
25
25
  thisObjectVar=thisObject;
26
- _$w('#dataset2').onReady(async () => {
27
- await _$w('#dataset2').refresh();
28
- });
29
26
  allJobs=await getAllPositions();
30
27
  await handleUrlParams(_$w);
31
28
  await activateAutoLoad(_$w);
@@ -276,25 +273,11 @@ async function handleDepartmentParam(_$w,department) {
276
273
  _$w('#dropdownDepartment').value = departmentValue;
277
274
  console.log("after setting, dropdown value:", _$w('#dropdownDepartment').value);
278
275
 
279
- // If value didn't set, try finding exact match
280
- if (!_$w('#dropdownDepartment').value) {
281
- const matchingOption = dropdownOptions.find(option =>
282
- option.label.toLowerCase() === departmentValue.toLowerCase() ||
283
- option.value.toLowerCase() === departmentValue.toLowerCase()
284
- );
285
-
286
- if (matchingOption) {
287
- console.log("found matching option:", matchingOption);
288
- _$w('#dropdownDepartment').value = matchingOption.value;
289
- console.log("after setting matching option, dropdown value:", _$w('#dropdownDepartment').value);
290
- } else {
291
- console.log("no matching option found for:", departmentValue);
292
- }
293
- }
294
-
295
276
  console.log("before applyFilters_$w('#dropdownDepartment').value", _$w('#dropdownDepartment').value);
296
277
 
297
278
  await applyFilters(_$w, true); // Skip URL update since we're handling initial URL params
279
+ console.log("url", url);
280
+ await to(url);
298
281
  }
299
282
 
300
283