Skip to content

Commit

Permalink
fix shift clicking unfiltered replays
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Nov 29, 2020
1 parent b7af728 commit 983364b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/FileLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default class FileLoader extends Component {
// Shift clicking on an already selected file removes all consecutive selections on and after it
// eslint-disable-next-line react/no-access-state-in-setstate
let newSelections = [...this.state.selections];
const files = this.props.store.files;
const files = (this.props.store.filterReplays ? this.props.store.files : this.props.store.allFiles) || [];
if (this.state.selections.indexOf(selectedFile) !== -1) {
const startingFileIndex = files.indexOf(selectedFile);
let numToRemove = 0;
Expand Down

0 comments on commit 983364b

Please sign in to comment.