summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repo/stores/actions/file.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/repo/stores/actions/file.js')
-rw-r--r--app/assets/javascripts/repo/stores/actions/file.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/repo/stores/actions/file.js b/app/assets/javascripts/repo/stores/actions/file.js
index eb0aa506d6c..5759ff07aef 100644
--- a/app/assets/javascripts/repo/stores/actions/file.js
+++ b/app/assets/javascripts/repo/stores/actions/file.js
@@ -39,6 +39,9 @@ export const setFileActive = ({ commit, state, getters, dispatch }, file) => {
commit(types.SET_FILE_ACTIVE, { file, active: true });
dispatch('scrollToTab');
+
+ // reset hash for line highlighting
+ location.hash = '';
};
export const getFileData = ({ state, commit, dispatch }, file) => {