fix: TypeScript-Fehler im Frontend beheben

- AudioPlayer: findLast → reverse().find() (ES2022 Kompatibilität)
- ChapterList: findLastIndex → manuelles for-loop + implizit any behoben
- Library: searchDebounce Variable 't' undefined → korrekte Initialisierung

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Audiolib
2026-05-26 13:16:16 +02:00
parent 52c10a7518
commit c65b8ba5cf
3 changed files with 7 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ export default function AudioPlayer() {
: `${m}:${sec.toString().padStart(2, '0')}`
}
const currentChapter = chapters.findLast?.((c: any) => currentTime >= c.start) || chapters[0]
const currentChapter = [...chapters].reverse().find((c: any) => currentTime >= c.start) || chapters[0]
const addBookmark = async () => {
if (!item) return