diff options
Diffstat (limited to 'app/assets/javascripts/repo/stores/actions/tree.js')
-rw-r--r-- | app/assets/javascripts/repo/stores/actions/tree.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/repo/stores/actions/tree.js b/app/assets/javascripts/repo/stores/actions/tree.js index d8a09b52348..7e8b0b10322 100644 --- a/app/assets/javascripts/repo/stores/actions/tree.js +++ b/app/assets/javascripts/repo/stores/actions/tree.js @@ -111,8 +111,8 @@ export const createTempTree = ({ state, commit, dispatch }, name) => { } }; -export const getLastCommitData = ({ state, commit, dispatch }, tree = state) => { - if (tree.lastCommitPath === '') return; +export const getLastCommitData = ({ state, commit, dispatch, getters }, tree = state) => { + if (tree.lastCommitPath === '' || getters.isCollapsed) return; service.getTreeLastCommit(tree.lastCommitPath) .then((res) => { |