Fix loading bugs in app backups page

This commit is contained in:
Andrew Kingston 2022-12-21 08:52:49 +00:00
parent 0a12dfd192
commit df1e1b0c3f
1 changed files with 3 additions and 3 deletions

View File

@ -165,8 +165,8 @@
} }
} }
onMount(() => { onMount(async () => {
fetchBackups(filterOpt, page, startDate, endDate) await fetchBackups(filterOpt, page, startDate, endDate)
loaded = true loaded = true
}) })
</script> </script>
@ -208,7 +208,7 @@
View plans View plans
</Button> </Button>
</div> </div>
{:else if backupData?.length === 0 && loaded && !filterOpt && !startDate} {:else if !backupData?.length && loaded && !filterOpt && !startDate}
<div class="center"> <div class="center">
<Layout noPadding gap="S" justifyItems="center"> <Layout noPadding gap="S" justifyItems="center">
<img height="130px" src={BackupsDefault} alt="BackupsDefault" /> <img height="130px" src={BackupsDefault} alt="BackupsDefault" />