Fix: correctly track task id in list for change detection (#8230)

This commit is contained in:
shamoon 2024-11-08 00:19:05 -08:00 committed by GitHub
parent 2806b1820e
commit c22a80abd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@
</tr>
</thead>
<tbody>
@for (task of tasks | slice: (page-1) * pageSize : page * pageSize; track task) {
@for (task of tasks | slice: (page-1) * pageSize : page * pageSize; track task.id) {
<tr (click)="toggleSelected(task, $event); $event.stopPropagation();">
<td>
<div class="form-check">