Skip to content

Commit

Permalink
Disable select button when no row selected in QB
Browse files Browse the repository at this point in the history
Fixes #5259
  • Loading branch information
CarolineDenis committed Sep 11, 2024
1 parent f58f0d4 commit 3630f6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,12 @@ export function QueryResults(props: QueryResultsProps): JSX.Element {
})}
</H3>
{selectedRows.size > 0 && (
<Button.Small onClick={(): void => setSelectedRows(new Set())}>
<Button.Small
onClick={(): void => {
setSelectedRows(new Set());
handleSelected?.([]);
}}
>
{interactionsText.deselectAll()}
</Button.Small>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ test('Editing Data Object Formatter', () => {
</switch>
</format>
<aggregators>
<aggregator name='AccessionAgent' title='AccessionAgent' class='edu.ku.brc.specify.datamodel.Agent' default='true' separator='' ending='' format='AccessionAgent'/>
<aggregator name='AccessionAgent' title='AccessionAgent' class='edu.ku.brc.specify.datamodel.AccessionAgent' default='true' separator='' ending='' format='AccessionAgent'/>
<aggregator name='AccessionAgent' title='AccessionAgent' class='edu.ku.brc.specify.datamodel.Agent' default='true' separator='; ' ending='' format='AccessionAgent'/>
<aggregator name='AccessionAgent' title='AccessionAgent' class='edu.ku.brc.specify.datamodel.AccessionAgent' default='true' separator='; ' ending='' format='AccessionAgent'/>
</aggregators>
</formatters>"
`);
Expand Down

0 comments on commit 3630f6e

Please sign in to comment.