Browse projects with new API: get results for the first load, after loading the funders
This commit is contained in:
parent
65da725887
commit
bfcbaa6b7b
|
@ -94,7 +94,6 @@ export class OpenaireSearchProjectsComponent {
|
|||
this.searchPage.prepareSearchPage(this.fieldIds, this.selectedFields, this.refineFields, [], this.fieldIdsMap, this.customFilter, params, "project");
|
||||
if(this.initialLoad) {
|
||||
this.initialLoad = false;
|
||||
this._getResults();
|
||||
this._getCommunityFunders();
|
||||
}else{
|
||||
this._getResults();
|
||||
|
@ -211,6 +210,7 @@ export class OpenaireSearchProjectsComponent {
|
|||
this.subscriptions.push(this._searchProjectsService.getProjectFunders(this.properties, this.communityId).subscribe(
|
||||
data => {
|
||||
this.originalFunders = data
|
||||
this._getResults();
|
||||
},
|
||||
err => {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue