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:
@@ -14,9 +14,9 @@ export function DownloadButton({
|
|||||||
const { formatMessage, labels } = useMessages();
|
const { formatMessage, labels } = useMessages();
|
||||||
|
|
||||||
const handleClick = async () => {
|
const handleClick = async () => {
|
||||||
if (!data || data.length === 0) {
|
const handleClick = async () => {
|
||||||
return;
|
downloadCsv(`${filename}.csv`, Papa.unparse(data));
|
||||||
}
|
};
|
||||||
downloadCsv(`${filename}.csv`, Papa.unparse(data));
|
downloadCsv(`${filename}.csv`, Papa.unparse(data));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user