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