Fix DownloadButton to avoid duplicate downloadCsv call

Removed redundant downloadCsv call from handleClick.
This commit is contained in:
Mike Cao authored and GitHub committed 2025-11-10 22:43:22 -08:00
1 parent 4fe4bb99b7
commit a6e130ab2e
1 file changed
-3
-3
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));
};