Fix DownloadButton to avoid duplicate downloadCsv call

Removed redundant downloadCsv call from handleClick.
This commit is contained in:
Mike Cao 2025-11-10 22:43:22 -08:00 committed by GitHub
parent 4fe4bb99b7
commit a6e130ab2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,9 +14,6 @@ export function DownloadButton({
const { formatMessage, labels } = useMessages();
const handleClick = async () => {
const handleClick = async () => {
downloadCsv(`${filename}.csv`, Papa.unparse(data));
};
downloadCsv(`${filename}.csv`, Papa.unparse(data));
};