fix template loop references

This commit is contained in:
2026-03-15 13:33:36 +01:00
parent 9bbabb18aa
commit e4f829d0c8
11 changed files with 14 additions and 14 deletions

View File

@@ -37,7 +37,7 @@
}
@if (show) {
<div class="song-parts">
@for (section of song.sections; track section; let i = $index) {
@for (section of song.sections; track section.type + '-' + section.number + '-' + $index; let i = $index) {
<div
(click)="onSectionClick(song.id, i, show.id)"
[class.active]="

View File

@@ -9,7 +9,7 @@
}
@if (shows.length>0) {
<div class="list">
@for (show of shows; track show) {
@for (show of shows; track show.id) {
<button (click)="selectShow(show)" mat-stroked-button>
<app-user-name [userId]="show.owner"></app-user-name>
,