openchs-models 1.32.6 → 1.32.7

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.
@@ -180,7 +180,11 @@ class DashboardFilterConfig {
180
180
 
181
181
  getInputDataType() {
182
182
  if (this.isConceptTypeFilter()) {
183
- return this.observationBasedFilter.concept.datatype;
183
+ if (this.isRangeWidget()) {
184
+ return _Range.default.DateRange;
185
+ } else {
186
+ return this.observationBasedFilter.concept.datatype;
187
+ }
184
188
  } else if ([_CustomFilter.default.type.Gender, _CustomFilter.default.type.Address, _CustomFilter.default.type.GroupSubject].includes(this.type)) {
185
189
  return DashboardFilterConfig.dataTypes.array;
186
190
  } else if (dateFilterTypes.includes(this.type) && !this.isRangeWidget()) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openchs-models",
3
3
  "description": "OpenCHS data model to be used by front end clients",
4
- "version": "1.32.6",
4
+ "version": "1.32.7",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",