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");
|
this.searchPage.prepareSearchPage(this.fieldIds, this.selectedFields, this.refineFields, [], this.fieldIdsMap, this.customFilter, params, "project");
|
||||||
if(this.initialLoad) {
|
if(this.initialLoad) {
|
||||||
this.initialLoad = false;
|
this.initialLoad = false;
|
||||||
this._getResults();
|
|
||||||
this._getCommunityFunders();
|
this._getCommunityFunders();
|
||||||
}else{
|
}else{
|
||||||
this._getResults();
|
this._getResults();
|
||||||
|
@ -211,6 +210,7 @@ export class OpenaireSearchProjectsComponent {
|
||||||
this.subscriptions.push(this._searchProjectsService.getProjectFunders(this.properties, this.communityId).subscribe(
|
this.subscriptions.push(this._searchProjectsService.getProjectFunders(this.properties, this.communityId).subscribe(
|
||||||
data => {
|
data => {
|
||||||
this.originalFunders = data
|
this.originalFunders = data
|
||||||
|
this._getResults();
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue