2
0

fix reverse ngfor loop

This commit is contained in:
2018-08-07 14:40:04 +02:00
parent da1cfd6782
commit aa3c208171

View File

@@ -110,7 +110,7 @@
</div>
<div *ngIf="showList" class="list-group mt-4">
<a href="#" *ngFor="let item of list.reverse(); let i = index" class="list-group-item d-flex flex-row " (click)="restoreGraph(item)">
<a href="#" *ngFor="let item of list.slice().reverse(); let i = index" class="list-group-item d-flex flex-row" (click)="restoreGraph(item)">
<span class="text-muted pr-3">#{{ list.length - i }}</span>
<div class="d-flex flex-column">
<div class="">