Browse projects with new API: get results for the first load, after loading the funders

This commit is contained in:
argirok 2023-10-06 17:28:37 +03:00
parent 65da725887
commit bfcbaa6b7b
1 changed files with 1 additions and 1 deletions

View File

@ -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 => {
}