diff options
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) { |