Fixes bug on sending unnecessary requests on dashboard.

This commit is contained in:
gkolokythas 2019-06-04 10:36:39 +03:00
parent bfb0e19f64
commit 8cd6615b7c
1 changed files with 2 additions and 3 deletions

View File

@ -99,6 +99,8 @@ export class DashboardComponent extends BaseComponent implements OnInit, IBreadC
//let data = results['payload']; //let data = results['payload'];
this.dashboardStatisticsData = results; this.dashboardStatisticsData = results;
}); });
this.getPublicDmps();
this.getPublicDatasets();
} else { } else {
this.dashboardService.getUserStatistics() this.dashboardService.getUserStatistics()
.pipe(takeUntil(this._destroyed)) .pipe(takeUntil(this._destroyed))
@ -110,9 +112,6 @@ export class DashboardComponent extends BaseComponent implements OnInit, IBreadC
this.filteredOptions = this.searchControl.valueChanges.flatMap(x => { this.filteredOptions = this.searchControl.valueChanges.flatMap(x => {
return this.searchBarService.search(x); return this.searchBarService.search(x);
}); });
this.getPublicDmps();
this.getPublicDatasets();
} }
public isAuthenticated(): boolean { public isAuthenticated(): boolean {