From 17424aada8491a4dc59ccb83d7f6b59cc68b645a Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 11 Sep 2025 00:32:00 +0000 Subject: [PATCH] fix: improve runs page auto-refresh loading for out-of-order started at --- frontend/src/lib/components/runs/JobsLoader.svelte | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/lib/components/runs/JobsLoader.svelte b/frontend/src/lib/components/runs/JobsLoader.svelte index f9f7554780..c63e48046e 100644 --- a/frontend/src/lib/components/runs/JobsLoader.svelte +++ b/frontend/src/lib/components/runs/JobsLoader.svelte @@ -388,9 +388,7 @@ if (isQueuedJob) { if (cursor > 0) { let inc = invCursor == 0 && jobs[invCursor].type == 'CompletedJob' ? 0 : 1 - const date = new Date( - jobs[invCursor + inc]?.started_at ?? jobs[invCursor + inc]?.created_at! - ) + const date = new Date(jobs[invCursor + inc]?.created_at!) date.setMilliseconds(date.getMilliseconds() + 1) ts = date.toISOString() }