We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b70cd7 commit 0bef1b6Copy full SHA for 0bef1b6
src/components/menu/submit/ExportSubmit.tsx
@@ -18,6 +18,11 @@ export default function ExportSubmitButton({ action }: { action: () => Promise<E
18
setLoading(true)
19
const data = await action();
20
const logs = data.revlogs
21
+ if(logs.length === 0){
22
+ alert("No logs to export")
23
+ setLoading(false)
24
+ return;
25
+ }
26
const GMT = -data.offset / 60
27
const head = Object.keys(logs[0]).join(',') + '\n'
28
const body = logs.map(log => Object.values(log).join(',')).join('\n')
0 commit comments