We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8abd29 commit bb0d208Copy full SHA for bb0d208
src/components/plugins/selection/CheckBox.jsx
@@ -43,11 +43,12 @@ export const CheckBox = ({
43
? selectedRows.get(rowId)
44
: false;
45
46
-
47
48
if (type === 'header') {
49
- // check to see if all rows are selected - lastUpdate && the header checkbox itself
50
- checked = selectedRows && selectedRows.count && selectedRows.every(s => s)
+ // check to see if all rows are selected
+ // lastUpdate && the header checkbox itself
+ checked = selectedRows
+ && selectedRows.count
51
+ && selectedRows.every(s => s)
52
? selectedRows.count() - 2 === dataSource.currentRecords.count()
53
54
}
0 commit comments