mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Apply suggestion from @greptile-apps[bot]
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
b9e90268d1
commit
4fe4bb99b7
1 changed files with 3 additions and 3 deletions
|
|
@ -14,9 +14,9 @@ export function DownloadButton({
|
|||
const { formatMessage, labels } = useMessages();
|
||||
|
||||
const handleClick = async () => {
|
||||
if (!data || data.length === 0) {
|
||||
return;
|
||||
}
|
||||
const handleClick = async () => {
|
||||
downloadCsv(`${filename}.csv`, Papa.unparse(data));
|
||||
};
|
||||
downloadCsv(`${filename}.csv`, Papa.unparse(data));
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue