[Library]: availableOn.component.ts: [Bug fix] Fix ExpressionChangedAfterItHasBeenCheckedError - Array.from(map.keys()) not just map.keys().

This commit is contained in:
Konstantina Galouni 2022-02-14 16:24:10 +02:00
parent 965b1ee134
commit a7a80723d5
1 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,7 @@ import {properties} from "../../../../environments/environment";
</div>
<div *ngIf="instance.collectedNamesAndIds?.size > 0">
<span>Providers: </span>
<a *ngFor="let collectedName of instance.collectedNamesAndIds.keys(); let i=index" [routerLink]="dataProviderUrl"
<a *ngFor="let collectedName of getKeys(instance.collectedNamesAndIds); let i=index" [routerLink]="dataProviderUrl"
[queryParams]="{datasourceId: instance.collectedNamesAndIds.get(collectedName)}">
{{collectedName}}<ng-container *ngIf="(i !== (instance.collectedNamesAndIds.size - 1))">; </ng-container>
</a>
@ -73,4 +73,8 @@ export class AvailableOnComponent {
}
return value;
}
public getKeys( map) {
return Array.from(map.keys());
}
}