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 +1 -1
- package/pages/careersPage.js +2 -1
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|