Skip to content

Commit

Permalink
Refs #36738 - Return SelectNone option
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren committed Mar 13, 2024
1 parent 3782e01 commit 197a874
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const ReviewHosts = () => {
selectPage,
selectedCount,
selectOne,
selectNone,
areAllRowsOnPageSelected,
areAllRowsSelected,
isSelected,
Expand All @@ -93,7 +94,10 @@ const ReviewHosts = () => {
{...{
selectAll: noop, // I don't think it really can select all since ids from other pages are still need to be loaded/fetched
selectPage,
selectNone: noop, // we shouldn't allow to select none since it migth lead to selecting a wrong host
selectNone: () => {
selectNone();
selectOne(true, hostId);
},
selectedCount,
pageRowCount,
}}
Expand Down

0 comments on commit 197a874

Please sign in to comment.