Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-04-25 14:40:20 +0300
committerPhil Hughes <me@iamphill.com>2018-04-25 14:40:20 +0300
commit9f35f6d9d53638aeb8ee917a388705458ddd87d7 (patch)
treef9b51f30963490c93bd6a0bc65d6a995b816b105 /app/assets/javascripts/ide/stores/actions/file.js
parentaf507c794442f5615a805f97acfea69f6444fc36 (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.js2
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;
}