From d892b30be221056edfb9ec5be35434133821b0b4 Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Fri, 16 Jan 2026 13:21:56 +1030 Subject: [PATCH] fix: persist expanded row state in release table by defining variable in entity table and binding inside release table --- .../[databaseId]/components/ReleaseTable.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/routes/quality-profiles/entity-testing/[databaseId]/components/ReleaseTable.svelte b/src/routes/quality-profiles/entity-testing/[databaseId]/components/ReleaseTable.svelte index 39ab213..183d254 100644 --- a/src/routes/quality-profiles/entity-testing/[databaseId]/components/ReleaseTable.svelte +++ b/src/routes/quality-profiles/entity-testing/[databaseId]/components/ReleaseTable.svelte @@ -17,6 +17,9 @@ export let calculateScore: (releaseId: number, entityType: 'movie' | 'series') => number | null; export let deleteLayer: 'user' | 'base' = 'user'; + // Track expanded rows outside {#key} block so state persists across profile changes + let expandedRows: Set = new Set(); + // Get matching custom formats for a release with their scores function getMatchingFormats(releaseId: number): Array<{ id: number; name: string; score: number }> { const evaluation = evaluations[releaseId]; @@ -103,7 +106,7 @@
{#if releases.length > 0} {#key selectedProfileId} - {#if column.key === 'title'}