From da87a0a3373b6681d2b51bca39f8a43a8891c56e Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 21 Dec 2022 08:52:49 +0000 Subject: [PATCH] Fix loading bugs in app backups page --- .../builder/portal/overview/[appId]/backups/index.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/overview/[appId]/backups/index.svelte b/packages/builder/src/pages/builder/portal/overview/[appId]/backups/index.svelte index ebf50a8df1..860d8dacad 100644 --- a/packages/builder/src/pages/builder/portal/overview/[appId]/backups/index.svelte +++ b/packages/builder/src/pages/builder/portal/overview/[appId]/backups/index.svelte @@ -165,8 +165,8 @@ } } - onMount(() => { - fetchBackups(filterOpt, page, startDate, endDate) + onMount(async () => { + await fetchBackups(filterOpt, page, startDate, endDate) loaded = true }) @@ -208,7 +208,7 @@ View plans - {:else if backupData?.length === 0 && loaded && !filterOpt && !startDate} + {:else if !backupData?.length && loaded && !filterOpt && !startDate}
BackupsDefault