fix: don't show export ready message when no export exists

The API returns an empty object {} with 200 status when no export
exists. This truthy value was being set as exportInfo, causing the
"ready for download" message and button to render with a blank date.
This commit is contained in:
kolaente
2026-02-19 16:01:32 +01:00
parent 3ce8c5bdda
commit 7862651b12

View File

@@ -93,7 +93,7 @@ const formattedExpiresDate = computed(() => exportInfo.value ? formatDisplayDate
onMounted(async () => {
try {
const data = await dataExportService.status()
exportInfo.value = data
exportInfo.value = data?.id ? data : null
} catch {
exportInfo.value = null
}