Merge pull request #3704 from prince0xdev/fix/disable-download-when-no-data

Fix: Disable download button when no data available
This commit is contained in:
Mike Cao authored and GitHub committed 2025-11-10 22:43:42 -08:00
commit 7ac5913c86
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ node_modules
.pnp
.pnp.js
.pnpm-store
package-lock.json
# testing
/coverage
+1 -1
View File
@@ -19,7 +19,7 @@ export function DownloadButton({
return (
<TooltipTrigger delay={0}>
<Button variant="quiet" onClick={handleClick} isDisabled={!data}>
<Button variant="quiet" onClick={handleClick} isDisabled={!data || data.length === 0}>
<Icon>
<Download />
</Icon>