From 14f7b2f28a87d51385439fba9cfca5ba9f6c8499 Mon Sep 17 00:00:00 2001 From: Lukas Date: Sun, 7 Jun 2026 20:38:47 +0200 Subject: [PATCH] fix: use stepId instead of type to check series_sync completion The type field is 'system_progress' for SYSTEM progress events, not 'series_sync'. Use stepId to correctly identify when series_sync has completed. --- src/server/web/templates/loading.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/web/templates/loading.html b/src/server/web/templates/loading.html index ae1ba11..b532988 100644 --- a/src/server/web/templates/loading.html +++ b/src/server/web/templates/loading.html @@ -451,7 +451,8 @@ updateStep(stepId, status, msg, percent, current, total); // Check for completion of series_sync - if (metadata?.initialization_complete || type === 'series_sync' && status === 'completed') { + // stepId is used because type is 'system_progress' for SYSTEM progress events + if (metadata?.initialization_complete || (stepId === 'series_sync' && status === 'completed')) { // For initial phase, series_sync completion leads to /setup/unresolved handleSeriesSyncComplete(); }