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'];
this.dashboardStatisticsData = results;
});
this.getPublicDmps();
this.getPublicDatasets();
} else {
this.dashboardService.getUserStatistics()
.pipe(takeUntil(this._destroyed))
@ -110,9 +112,6 @@ export class DashboardComponent extends BaseComponent implements OnInit, IBreadC
this.filteredOptions = this.searchControl.valueChanges.flatMap(x => {
return this.searchBarService.search(x);
});
this.getPublicDmps();
this.getPublicDatasets();
}
public isAuthenticated(): boolean {