sr-npm 1.7.152 → 1.7.154

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.152",
3
+ "version": "1.7.154",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -271,15 +271,16 @@ async function handleDepartmentParam(_$w,department) {
271
271
  //+1 because of the "All" option
272
272
 
273
273
  if(dropdownOptions.length!==optionsFromCMS.items.length+1){
274
-
275
- dropdownOptions={
274
+
275
+ dropdownOptions=[{
276
276
  label: "All",
277
277
  value: "RESET_ALL"
278
- }
278
+ }]
279
279
  dropdownOptions.push(...optionsFromCMS.items.map(item=>({
280
280
  label: item.title,
281
281
  value: item.title
282
282
  })));
283
+ _$w('#dropdownDepartment').options=dropdownOptions;
283
284
  console.warn("something is wrong with the dropdown options, fixing it");
284
285
  }
285
286