From feae8975527fa3742b6cf279d19c27f724bf0a8e Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 4 Sep 2018 11:08:20 +0100 Subject: karma fixes --- app/assets/javascripts/ide/stores/actions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/assets/javascripts/ide/stores/actions.js') diff --git a/app/assets/javascripts/ide/stores/actions.js b/app/assets/javascripts/ide/stores/actions.js index 734ee1995ee..b8b64aead30 100644 --- a/app/assets/javascripts/ide/stores/actions.js +++ b/app/assets/javascripts/ide/stores/actions.js @@ -124,25 +124,25 @@ export const scrollToTab = () => { }; export const stageAllChanges = ({ state, commit, dispatch }) => { - const activeFile = state.openFiles[0]; + const openFile = state.openFiles[0]; commit(types.SET_LAST_COMMIT_MSG, ''); state.changedFiles.forEach(file => commit(types.STAGE_CHANGE, file.path)); dispatch('openPendingTab', { - file: state.stagedFiles.find(f => f.path === activeFile.path), + file: state.stagedFiles.find(f => f.path === openFile.path), keyPrefix: stageKeys.staged, }); }; export const unstageAllChanges = ({ state, commit, dispatch }) => { - const activeFile = state.openFiles[0]; + const openFile = state.openFiles[0]; state.stagedFiles.forEach(file => commit(types.UNSTAGE_CHANGE, file.path)); dispatch('openPendingTab', { - file: state.changedFiles.find(f => f.path === activeFile.path), + file: state.changedFiles.find(f => f.path === openFile.path), keyPrefix: stageKeys.unstaged, }); }; -- cgit v1.2.1