sr-npm 1.7.196 → 1.7.198

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.196",
3
+ "version": "1.7.198",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -314,9 +314,10 @@ function fixDropdownOptions(dropdown,optionsFromCMS, _$w){
314
314
  }
315
315
 
316
316
  async function handleLocationParam(_$w,location) {
317
+ const locationValue = decodeURIComponent(location);
317
318
  let dropdownOptions = _$w('#dropdownLocation').options;
318
319
  console.log("location dropdown options:", dropdownOptions);
319
- const optionsFromCMS=await wixData.query("Cities").find();
320
+ const optionsFromCMS=await wixData.query("cities").find();
320
321
  //+1 because of the "All" option
321
322
 
322
323
  if(dropdownOptions.length!==optionsFromCMS.items.length+1){