diff --git a/frontend/src/lib/components/RunChart.svelte b/frontend/src/lib/components/RunChart.svelte index de20db1d1e..ca489448af 100644 --- a/frontend/src/lib/components/RunChart.svelte +++ b/frontend/src/lib/components/RunChart.svelte @@ -152,4 +152,6 @@ } as any - +
+ +
diff --git a/frontend/src/routes/(root)/(logged)/runs/[...path]/+page.svelte b/frontend/src/routes/(root)/(logged)/runs/[...path]/+page.svelte index b9fd1ffffc..a54ed674ff 100644 --- a/frontend/src/routes/(root)/(logged)/runs/[...path]/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/runs/[...path]/+page.svelte @@ -121,7 +121,9 @@ } let sync = true + let mounted: boolean = false onMount(() => { + mounted = true loadPaths() intervalId = setInterval(syncer, 5000) @@ -140,10 +142,11 @@ } }) - $: if (!intervalId && autoRefresh) { + $: if (mounted && !intervalId && autoRefresh) { intervalId = setInterval(syncer, 5000) } - $: if (intervalId && !autoRefresh) { + + $: if (mounted && intervalId && !autoRefresh) { clearInterval(intervalId) intervalId = undefined } @@ -315,7 +318,7 @@ -
+
{