sr-npm 1.7.195 → 1.7.197

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.195",
3
+ "version": "1.7.197",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -92,7 +92,7 @@ async function handleUrlParams(_$w) {
92
92
  await handleDepartmentParam(_$w,queryDepartmentVar);
93
93
  }
94
94
  if (queryLocationVar) {
95
-
95
+
96
96
  console.log("queryLocationVar:@!#$#@%^%$&%&^%&^% ", queryLocationVar);
97
97
  await handleLocationParam(_$w,queryLocationVar);
98
98
  }
@@ -175,6 +175,8 @@ function init(_$w) {
175
175
  }
176
176
 
177
177
  async function applyFilters(_$w, skipUrlUpdate = false) {
178
+ console.log("applyFilters");
179
+ console.log("dropdownLocation value: ", _$w('#dropdownLocation').value);
178
180
  const dropdownFiltersMapping = [
179
181
  { elementId: '#dropdownDepartment', field: 'department', value: _$w('#dropdownDepartment').value },
180
182
  { elementId: '#dropdownLocation', field: 'cityText', value: _$w('#dropdownLocation').value },
@@ -314,7 +316,7 @@ function fixDropdownOptions(dropdown,optionsFromCMS, _$w){
314
316
  async function handleLocationParam(_$w,location) {
315
317
  let dropdownOptions = _$w('#dropdownLocation').options;
316
318
  console.log("location dropdown options:", dropdownOptions);
317
- const optionsFromCMS=await wixData.query("Cities").find();
319
+ const optionsFromCMS=await wixData.query("cities").find();
318
320
  //+1 because of the "All" option
319
321
 
320
322
  if(dropdownOptions.length!==optionsFromCMS.items.length+1){