[Library]: availableOn.component.ts: [Bug fix] Fix ExpressionChangedAfterItHasBeenCheckedError - Array.from(map.keys()) not just map.keys().
This commit is contained in:
parent
965b1ee134
commit
a7a80723d5
|
@ -25,7 +25,7 @@ import {properties} from "../../../../environments/environment";
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="instance.collectedNamesAndIds?.size > 0">
|
<div *ngIf="instance.collectedNamesAndIds?.size > 0">
|
||||||
<span>Providers: </span>
|
<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)}">
|
[queryParams]="{datasourceId: instance.collectedNamesAndIds.get(collectedName)}">
|
||||||
{{collectedName}}<ng-container *ngIf="(i !== (instance.collectedNamesAndIds.size - 1))">; </ng-container>
|
{{collectedName}}<ng-container *ngIf="(i !== (instance.collectedNamesAndIds.size - 1))">; </ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
@ -73,4 +73,8 @@ export class AvailableOnComponent {
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public getKeys( map) {
|
||||||
|
return Array.from(map.keys());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue