diff options
author | Phil Hughes <me@iamphill.com> | 2018-06-05 10:57:13 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-06 13:19:28 +0300 |
commit | f8d8b63f32176975c802313d966fb81c2bb2122a (patch) | |
tree | 888ca9776991c56c41b834f4d266cadf8c5a40fc /app/assets/javascripts | |
parent | d644798fa792f9261a41e13b5b21e1e48dd6da42 (diff) |
fixed karma
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/ide/stores/modules/merge_requests/actions.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/ide/stores/modules/merge_requests/actions.js b/app/assets/javascripts/ide/stores/modules/merge_requests/actions.js index 3a572a012fe..5beb8fac71f 100644 --- a/app/assets/javascripts/ide/stores/modules/merge_requests/actions.js +++ b/app/assets/javascripts/ide/stores/modules/merge_requests/actions.js @@ -34,10 +34,9 @@ export const openMergeRequest = ({ commit, dispatch }, { projectPath, id }) => { dispatch('pipelines/stopPipelinePolling', null, { root: true }); dispatch('pipelines/clearEtagPoll', null, { root: true }); dispatch('pipelines/resetLatestPipeline', null, { root: true }); + dispatch('setCurrentBranchId', '', { root: true }); - return dispatch('setCurrentBranchId', '', { root: true }).then(() => - router.push(`/project/${projectPath}/merge_requests/${id}`), - ); + router.push(`/project/${projectPath}/merge_requests/${id}`); }; export default () => {}; |