Unverified Commit 707223e7 authored by Rajeev's avatar Rajeev Committed by GitHub
Browse files

Merge pull request #8358 from 5Amogh/RRHE-52

Issue #SB-31008 fix: Dirstict and org filters flush after program cha…
Showing with 6 additions and 0 deletions
+6 -0
......@@ -249,6 +249,9 @@ export class DatasetsComponent implements OnInit, OnDestroy {
public programSelection($event) {
this.reportForm.reset();
this.displayFilters = {};
this.districts = []
this.organisations = [];
const program = this.programs.filter(data => {
if (data._id == $event.value) {
return data;
......@@ -271,6 +274,8 @@ export class DatasetsComponent implements OnInit, OnDestroy {
this.districts = []
this.organisations = [];
this.resetConfigFilters();
delete this.displayFilters['District'];
delete this.displayFilters['Organisation'];
this.globalDistrict = this.globalOrg = undefined;
if (this.programSelected && this.reportForm.value && this.reportForm.value['solution']) {
const solution = this.solutions.filter(data => {
......@@ -526,6 +531,7 @@ export class DatasetsComponent implements OnInit, OnDestroy {
this.goToPrevLocation = false;
this.showPopUpModal = true;
this.globalDistrict = this.globalOrg = undefined;
this.displayFilters = {};
this.timeRangeInit();
this.resetConfigFilters();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment