sr-npm 1.7.990 → 1.7.991

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.990",
3
+ "version": "1.7.991",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -109,13 +109,21 @@ async function handleParams(_$w,param,values) {
109
109
  let valuesAsArray = values.split(',')
110
110
  console.log("values: ",values);
111
111
  console.log("valuesAsArray: ",valuesAsArray);
112
+ let selectedIndices=[];
112
113
  for(const value of valuesAsArray) {
113
114
  const decodedValue = decodeURIComponent(value);
115
+ console.log("decodedValue: ",decodedValue);
114
116
  const field=getFieldByTitle(fieldTitlesInCMS[param],allfields);
117
+ console.log("field: ",field);
115
118
  const options=optionsByFieldId.get(field._id);
119
+ console.log("options: ",options);
116
120
  const option=getCorrectOption(decodedValue,options);
121
+ console.log("option: ",option);
117
122
  if(option) {
118
123
  const optionIndex=getOptionIndexFromCheckBox(_$w(`#${FiltersIds[field.title]}CheckBox`).options,option.value);
124
+ console.log("optionIndex: ",optionIndex);
125
+ console.log(" _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices: ",_$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices);
126
+ selectedIndices.push(optionIndex);
119
127
  _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices.push(optionIndex);
120
128
  let existing = selectedByField.get(field._id) || [];
121
129
  existing.push(option.value);
@@ -127,6 +135,8 @@ async function handleParams(_$w,param,values) {
127
135
  console.warn(`${param} value not found in dropdown options`);
128
136
  }
129
137
  }
138
+
139
+
130
140
  return applyFiltering;
131
141
  }
132
142