Skip to content

Commit

Permalink
simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Jan 2, 2024
1 parent 1a726ef commit f4161e7
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ export const MRT_SelectCheckbox = <TData extends MRT_RowData>({
const commonProps = {
checked: selectAll ? allRowsSelected : row?.getIsSelected(),
disabled:
isLoading ||
(row &&
(!row.getCanSelect() ||
row.index === -1 ||
row.id === 'mrt-row-create')),
isLoading || (row && !row.getCanSelect()) || row?.id === 'mrt-row-create',
inputProps: {
'aria-label': selectAll
? localization.toggleSelectAll
Expand Down

0 comments on commit f4161e7

Please sign in to comment.