- @for (section of song.sections; track section; let i = $index) {
+ @for (section of song.sections; track section.type + '-' + section.number + '-' + $index; let i = $index) {
0) {
- @for (show of shows; track show) {
+ @for (show of shows; track show.id) {
- @for (file of files$ | async; track file) {
+ @for (file of files$ | async; track file.id) {
diff --git a/src/app/modules/songs/song/edit/history/history.component.html b/src/app/modules/songs/song/edit/history/history.component.html
index 8b14eff..0f412cb 100644
--- a/src/app/modules/songs/song/edit/history/history.component.html
+++ b/src/app/modules/songs/song/edit/history/history.component.html
@@ -1,6 +1,6 @@
@if (song && song.edits) {
- @for (edit of song.edits; track edit) {
+ @for (edit of song.edits; track edit.username + '-' + edit.timestamp.toMillis()) {
{{ edit.username }}
{{ edit.timestamp.toDate() | date: "dd.MM.yyyy" }}
diff --git a/src/app/modules/songs/song/song.component.html b/src/app/modules/songs/song/song.component.html
index f5a801f..d256ff7 100644
--- a/src/app/modules/songs/song/song.component.html
+++ b/src/app/modules/songs/song/song.component.html
@@ -99,7 +99,7 @@
@if (files$ | async; as files) {
@if (files.length > 0) {
- @for (file of files$ | async; track file) {
+ @for (file of files$ | async; track file.id) {
diff --git a/src/app/modules/user/info/users/users.component.html b/src/app/modules/user/info/users/users.component.html
index e86468a..849b2ea 100644
--- a/src/app/modules/user/info/users/users.component.html
+++ b/src/app/modules/user/info/users/users.component.html
@@ -1,5 +1,5 @@
- @for (user of users$ | async | sortBy: 'asc':'name'; track user) {
+ @for (user of users$ | async | sortBy: 'asc':'name'; track user.id) {
}
diff --git a/src/app/services/user/user-song-usage.service.ts b/src/app/services/user/user-song-usage.service.ts
index 3383bf3..58b29d5 100644
--- a/src/app/services/user/user-song-usage.service.ts
+++ b/src/app/services/user/user-song-usage.service.ts
@@ -1,7 +1,7 @@
import {Injectable, inject} from '@angular/core';
import {firstValueFrom} from 'rxjs';
import {take} from 'rxjs/operators';
-import {increment} from '@angular/fire/firestore';
+import {increment} from 'firebase/firestore';
import {DbService} from '../db.service';
import {ShowDataService} from '../../modules/shows/services/show-data.service';
import {ShowSongDataService} from '../../modules/shows/services/show-song-data.service';
diff --git a/src/app/widget-modules/components/song-text/song-text.component.html b/src/app/widget-modules/components/song-text/song-text.component.html
index ca451c6..6a74c9f 100644
--- a/src/app/widget-modules/components/song-text/song-text.component.html
+++ b/src/app/widget-modules/components/song-text/song-text.component.html
@@ -14,13 +14,13 @@
}
- @for (section of sections; track section; let i = $index) {
+ @for (section of sections; track section.type + '-' + section.number + '-' + $index; let i = $index) {
- @for (line of getLines(section); track line) {
+ @for (line of getLines(section); track (line.lineNumber ?? $index) + '-' + line.type + '-' + $index) {
{{ header }}
}
- @for (section of sections; track section; let i = $index) {
+ @for (section of sections; track section.type + '-' + section.number + '-' + $index; let i = $index) {
- @for (line of getLines(section); track line) {
+ @for (line of getLines(section); track (line.lineNumber ?? $index) + '-' + line.type + '-' + $index) {