diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-25 14:40:20 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-25 14:40:20 +0300 |
commit | 9f35f6d9d53638aeb8ee917a388705458ddd87d7 (patch) | |
tree | f9b51f30963490c93bd6a0bc65d6a995b816b105 /app/assets/javascripts/ide/stores/actions/file.js | |
parent | af507c794442f5615a805f97acfea69f6444fc36 (diff) |
fixed commit files not opening correctly
Diffstat (limited to 'app/assets/javascripts/ide/stores/actions/file.js')
-rw-r--r-- | app/assets/javascripts/ide/stores/actions/file.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/stores/actions/file.js b/app/assets/javascripts/ide/stores/actions/file.js index d782e0a84d2..a6ad7d54ae1 100644 --- a/app/assets/javascripts/ide/stores/actions/file.js +++ b/app/assets/javascripts/ide/stores/actions/file.js @@ -193,7 +193,7 @@ export const unstageChange = ({ commit }, path) => { }; export const openPendingTab = ({ commit, getters, dispatch, state }, { file, keyPrefix }) => { - if (getters.activeFile && getters.activeFile === file && state.viewer === 'diff') { + if (getters.activeFile && getters.activeFile.path === file.path && state.viewer === 'diff') { return false; } |