Fixes bug on sending unnecessary requests on dashboard.
This commit is contained in:
parent
bfb0e19f64
commit
8cd6615b7c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue