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

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

@ -43,7 +43,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <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();"> <tr (click)="toggleSelected(task, $event); $event.stopPropagation();">
<td> <td>
<div class="form-check"> <div class="form-check">