Merge pull request #3704 from prince0xdev/fix/disable-download-when-no-data
Some checks failed
Node.js CI / build (postgresql, 18.18, 10) (push) Has been cancelled

Fix: Disable download button when no data available
This commit is contained in:
Mike Cao 2025-11-10 22:43:42 -08:00 committed by GitHub
commit 7ac5913c86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -5,6 +5,7 @@ node_modules
.pnp
.pnp.js
.pnpm-store
package-lock.json
# testing
/coverage

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>