diff --git a/src/routes/projects/[projectId]/player/+page.svelte b/src/routes/projects/[projectId]/player/+page.svelte index c8be022f2..374861dbe 100644 --- a/src/routes/projects/[projectId]/player/+page.svelte +++ b/src/routes/projects/[projectId]/player/+page.svelte @@ -130,14 +130,14 @@ }); // get the session chapters that are in the current day - let dayChapters = Object.entries(sessionChapters) - .filter(([sid, chapter]) => { + let dayChapters = Object.values(sessionChapters) + .filter((chapter) => { let chapterDay = dateToYmd(new Date(chapter.firstDeltaTimestampMs)); return chapterDay === $currentDay; }) // filter to chapters with more than 0 files - .filter(([, chapter]) => Object.keys(chapter.files).length > 0) - .map(([, chapter]) => chapter) + .filter((chapter) => Object.keys(chapter.files).length > 0) + .map((chapter) => chapter) .sort((a, b) => a.firstDeltaTimestampMs - b.firstDeltaTimestampMs); // process the playlist metadata @@ -148,7 +148,7 @@ projectId: data.projectId, sessionId: sid }).then((files) => { - Object.entries(sessionFiles[sid] ?? {}).forEach(([filepath, _]) => { + Object.keys(sessionFiles[sid] ?? {}).forEach((filepath) => { if (files[filepath] !== undefined) { sessionFiles[sid][filepath] = files[filepath]; } @@ -442,7 +442,7 @@
- {#each Object.entries(chapter.files) as [filenm, changes]} + {#each Object.keys(chapter.files) as filenm} {#if currentEdit.filepath == filenm}
{shortPath(filenm)}
{:else} @@ -456,7 +456,7 @@