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 12, 2024
1 parent 502a375 commit aeec4c6
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 aeec4c6

Please sign in to comment.