Skip to content

Commit

Permalink
fix: always pass boolean value when toggling checkbox (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfanatic authored Oct 20, 2021
1 parent 2a848fe commit 2e9fd59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dashboard/Data/Browser/BrowserTable.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ export default class BrowserTable extends React.Component {
{table}
<DataBrowserHeaderBar
selected={
this.props.selection &&
this.props.data &&
!!this.props.selection &&
!!this.props.data &&
Object.values(this.props.selection).filter(checked => checked).length === this.props.data.length
}
selectAll={checked => this.props.data.forEach(({ id }) => this.props.selectRow(id, checked))}
Expand Down

0 comments on commit 2e9fd59

Please sign in to comment.