Follow up commit
This commit is contained in:
parent
0da51e2356
commit
fd3885d404
|
@ -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]);
|
||||||
|
|
Loading…
Reference in New Issue