Follow up commit

This commit is contained in:
Konstantinos Triantafyllou 2021-11-05 13:36:19 +02:00
parent 0da51e2356
commit fd3885d404
1 changed files with 1 additions and 1 deletions

View File

@ -120,12 +120,12 @@ export class SearchStakeholdersComponent {
if(this.totalResults) { if(this.totalResults) {
this._getResults(params); this._getResults(params);
} else { } else {
this.totalResults = [];
this.subscriptions.push(this._stakeholderService.getStakeholders(this.properties.monitorServiceAPIURL).subscribe( this.subscriptions.push(this._stakeholderService.getStakeholders(this.properties.monitorServiceAPIURL).subscribe(
data => { data => {
if (!data) { if (!data) {
return; return;
} }
this.totalResults = [];
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
this.totalResults[i] = data[i]; this.totalResults[i] = data[i];
this.totalResults[i].isManager = this.isManager(data[i]); this.totalResults[i].isManager = this.isManager(data[i]);