Skip to content

Commit

Permalink
clear select all if unfiltering and check the correct files array
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Nov 29, 2020
1 parent e93d7c2 commit daae08c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/FileLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default class FileLoader extends Component {

selectAll = () => {
this.setState((prevState) => ({
selections: prevState.areAllSelected ? [] : this.props.store.files,
selections: prevState.areAllSelected ? [] : (this.props.store.filterReplays ? this.props.store.files : this.props.store.allFiles) || [],
areAllSelected: !prevState.areAllSelected,
}));
}
Expand Down Expand Up @@ -300,6 +300,7 @@ export default class FileLoader extends Component {
this.props.setFilterReplays(false);
this.setState({
selections: [],
areAllSelected: false,
});
}

Expand Down

0 comments on commit daae08c

Please sign in to comment.