Skip to content

Commit

Permalink
fix(networks): disable xlsx if no data
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonestla committed Nov 21, 2024
1 parent faacfcf commit ca27483
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/pages/networks/components/exports/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export default function NetworkExports() {
<div className="fr-pl-2w">
<MenuButton
disabledKeys={
isExporting || search.isFetching || Boolean(search.error) || !currentQuery ? ["export>json", "export>csv"] : []
isExporting || search.isFetching || Boolean(search.error) || !currentQuery
? ["export>json", "export>xlsx"]
: []
}
placement="end"
size="sm"
Expand Down

0 comments on commit ca27483

Please sign in to comment.