mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-30 08:25:58 -05:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user