Skip to content

Commit ea5fded

Browse files
committed
fix: prevent change detection exception
1 parent 4150f06 commit ea5fded

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/app.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h2 class="mb-3 display-5">Settings</h2>
5656
<h2 class="mb-3 display-5">Annotations</h2>
5757

5858
<ul class="list-group" style="height: 15rem; overflow-y: auto">
59-
@for (a of annotations.reverse(); track $index) {
59+
@for (a of annotations.slice().reverse(); track $index) {
6060
<li class="list-group-item">
6161
start: {{ a.startIndex }}, end: {{ a.endIndex }}, text: "{{ a.text }}", label: {{ a.label }}
6262
</li>
@@ -68,7 +68,7 @@ <h2 class="mb-3 display-5">Annotations</h2>
6868
<h2 class="mb-3 display-5">Events</h2>
6969

7070
<ul class="list-group" style="height: 15rem; overflow-y: auto">
71-
@for (e of events.reverse(); track $index) {
71+
@for (e of events.slice().reverse(); track $index) {
7272
<li class="list-group-item">
7373
{{ e }}
7474
</li>

0 commit comments

Comments
 (0)