Skip to content

Commit 2e9fd59

Browse files
fix: always pass boolean value when toggling checkbox (#1872)
1 parent 2a848fe commit 2e9fd59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dashboard/Data/Browser/BrowserTable.react.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,8 @@ export default class BrowserTable extends React.Component {
433433
{table}
434434
<DataBrowserHeaderBar
435435
selected={
436-
this.props.selection &&
437-
this.props.data &&
436+
!!this.props.selection &&
437+
!!this.props.data &&
438438
Object.values(this.props.selection).filter(checked => checked).length === this.props.data.length
439439
}
440440
selectAll={checked => this.props.data.forEach(({ id }) => this.props.selectRow(id, checked))}

0 commit comments

Comments
 (0)