[develop | DONE | CHANGED] indicator utils: user date range overrides the default range a chart may have
This commit is contained in:
parent
afdf6bf964
commit
474a73e2f7
|
@ -554,11 +554,11 @@ export class IndicatorUtils {
|
|||
filterApplied = true;
|
||||
} else if (filterType == "start_year" || filterType == "end_year") {
|
||||
//if has date filter already
|
||||
if (filterType == "start_year" && parseInt(filterValue) > parseInt(queries["query"]["filters"][filterposition.filter]['groupFilters'][filterposition.groupFilter]["values"][0])) {
|
||||
// if (filterType == "start_year" && parseInt(filterValue) > parseInt(queries["query"]["filters"][filterposition.filter]['groupFilters'][filterposition.groupFilter]["values"][0])) {
|
||||
queries["query"]["filters"][filterposition.filter]['groupFilters'][filterposition.groupFilter]["values"][0] = filterValue;
|
||||
} else if (filterType == "end_year" && parseInt(filterValue) < parseInt(queries["query"]["filters"][filterposition.filter]['groupFilters'][filterposition.groupFilter]["values"][0])) {
|
||||
// } else if (filterType == "end_year" && parseInt(filterValue) < parseInt(queries["query"]["filters"][filterposition.filter]['groupFilters'][filterposition.groupFilter]["values"][0])) {
|
||||
queries["query"]["filters"][filterposition.filter]['groupFilters'][filterposition.groupFilter]["values"][0] = filterValue;
|
||||
}
|
||||
// }
|
||||
filterApplied = true;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue