diff --git a/src/components/Sidebar.svelte b/src/components/Sidebar.svelte index 312bead..e55a213 100644 --- a/src/components/Sidebar.svelte +++ b/src/components/Sidebar.svelte @@ -82,7 +82,15 @@ day = k; rows.push({ kind: "day", label: k, key: `d:${k}` }); } - rows.push({ kind: "album", album: a, key: `a:${a.album_id}` }); + // Two id realms, so the key must carry the realm: catalog rows + // have album_id NULL, and keying them all `a:null` was a + // duplicate-key crash that silently killed this whole list the + // moment TWO streamed albums entered history (2026-08-01). + rows.push({ + kind: "album", + album: a, + key: a.kind === "catalog" ? `c:${a.catalog_album_id}` : `l:${a.album_id}`, + }); } return rows; });