From 9b87528c553f2ea690bfd378fe5be8cacdbc33fc Mon Sep 17 00:00:00 2001 From: codrut Date: Thu, 13 Nov 2025 16:02:38 +0200 Subject: [PATCH] fix lh-health refresh --- fe/src/routes/lh-health/+page.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fe/src/routes/lh-health/+page.svelte b/fe/src/routes/lh-health/+page.svelte index 97396ba..944308e 100644 --- a/fe/src/routes/lh-health/+page.svelte +++ b/fe/src/routes/lh-health/+page.svelte @@ -167,15 +167,15 @@ }; // --- Data Fetching --- - onMount(() => { - if ($healthEnabled) { + $: { + if (browser && $healthEnabled && allRules.length === 0) { fetchOverviewData(); fetchRunningJobs(); fetchSchedules(); - if (allRules.length === 0) fetchAllRules(); - if (allNamespaces.length === 0) fetchAllNamespaces(); + fetchAllRules(); + fetchAllNamespaces(); } - }); + } $: { completedRunsLimit;