Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
[#1091] Fixed mobx strict error - using reference to array instead of…
Browse files Browse the repository at this point in the history
… copy.
  • Loading branch information
vasek committed Oct 5, 2016
1 parent a47fede commit 2d8d0c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/actions/selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import { appStore, commitsTableStore } from '../stores';

export function selectCommits(commitsToSelect: Commit[], isChecked: boolean, isShiftKey: boolean) {
const { commits } = commitsTableStore;
let { selectedCommits, lastSelectedCommit } = appStore;
let { lastSelectedCommit } = appStore;
const isBulk = commitsToSelect.length > 1;

let selectedCommits = appStore.selectedCommits.slice(0);

commitsToSelect
.filter(commit => commit.canUndo)
.forEach(commit => {
Expand Down

0 comments on commit 2d8d0c9

Please sign in to comment.