diff --git a/src/routes/home/+page.svelte b/src/routes/home/+page.svelte index e5a9a90a..ad23b1db 100644 --- a/src/routes/home/+page.svelte +++ b/src/routes/home/+page.svelte @@ -24,7 +24,7 @@ export let data; - + let isLoaded = false; const quickInfo = data?.getDashboard?.quickInfo; @@ -143,6 +143,7 @@ function latestInfoDate(inputDate) { let Feedback; onMount( async() => { + isLoaded = true; Feedback = (await import('$lib/components/Feedback.svelte')).default }) @@ -352,18 +353,18 @@ onMount( async() => { - {#if data?.getDashboard?.retailTracker?.length !== 0} + {#if isLoaded && data?.getDashboard?.retailTracker?.length !== 0}
{:else} -
-
- -
-
+
+
+
+
+
+
+
{/if}