improve design for time entries index export

This commit is contained in:
Gregor Vostrak
2024-12-08 18:32:55 +01:00
committed by Constantin Graf
parent 4281736a6d
commit e308ca78b1
6 changed files with 196 additions and 81 deletions

View File

@@ -198,7 +198,9 @@ async function downloadExport(format: ExportFormat) {
'Export successful',
'Export failed'
);
window.open(response.download_url, '_blank')?.focus();
if (response?.download_url) {
window.open(response.download_url as string, '_blank')?.focus();
}
}
}
const { getNameForReportingRowEntry, emptyPlaceholder } = useReportingStore();