sr-npm 1.7.149 → 1.7.150

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.149",
3
+ "version": "1.7.150",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -268,7 +268,8 @@ async function handleDepartmentParam(_$w,department) {
268
268
  const dropdownOptions = _$w('#dropdownDepartment').options;
269
269
  console.log("dropdown options:", dropdownOptions);
270
270
  const optionsFromCMS=await wixData.query("AmountOfJobsPerDepartment").find();
271
- if(dropdownOptions.length!==optionsFromCMS.items.length){
271
+ //+1 because of the "All" option
272
+ if(dropdownOptions.length!==optionsFromCMS.items.length+1){
272
273
  throw new Error("dropdownOptions.length!==optionsFromCMS.items.length");
273
274
  }
274
275