diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-10-05 12:29:31 +0200 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-10-05 12:29:31 +0200 |
commit | 8262cb2f4e9f366e99592859d6348f48da4a4d39 (patch) | |
tree | a0b852d6938de4fdf087eb5bcca5efa6b5975028 /app | |
parent | 8cd4a7cfd702ffce4630b48a3c266e0954087362 (diff) | |
download | gitlab-ce-8262cb2f4e9f366e99592859d6348f48da4a4d39.tar.gz |
CHanged to Helper Method
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/repo/components/repo_sidebar.vue | 2 |
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) { |