summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-10-05 12:29:31 +0200
committerTim Zallmann <tzallmann@gitlab.com>2017-10-05 12:29:31 +0200
commit8262cb2f4e9f366e99592859d6348f48da4a4d39 (patch)
treea0b852d6938de4fdf087eb5bcca5efa6b5975028
parent8cd4a7cfd702ffce4630b48a3c266e0954087362 (diff)
downloadgitlab-ce-8262cb2f4e9f366e99592859d6348f48da4a4d39.tar.gz
CHanged to Helper Method
-rw-r--r--app/assets/javascripts/repo/components/repo_sidebar.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/repo/components/repo_sidebar.vue b/app/assets/javascripts/repo/components/repo_sidebar.vue
index 2b0f1f661ff..99bf471b83d 100644
--- a/app/assets/javascripts/repo/components/repo_sidebar.vue
+++ b/app/assets/javascripts/repo/components/repo_sidebar.vue
@@ -31,7 +31,7 @@ export default {
let selectedFile = this.files.find(file => location.pathname.indexOf(file.url) > -1);
if (!selectedFile) {
// Maybe it is not in the current tree but in the opened tabs
- selectedFile = Store.openedFiles.find(file => location.pathname.indexOf(file.url) > -1);
+ selectedFile = Helper.getFileFromPath(location.pathname);
}
if (selectedFile) {
if (selectedFile.url !== this.activeFile.url) {