diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-12-14 10:40:49 +0100 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-12-19 12:26:02 +0100 |
commit | 47ac797b50e1c08cdb33f9f1da45346088f51ecf (patch) | |
tree | 2e3f7dc50c83d24b281f5f4aeadc1c624ce83a40 /app | |
parent | 9c3ed741cdff7ee7c16ec2fb9c0229440267fa06 (diff) | |
download | gitlab-ce-47ac797b50e1c08cdb33f9f1da45346088f51ecf.tar.gz |
Fixed Modal Problem with uninitialised projectID
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/ide/stores/actions/project.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/ide/stores/actions/project.js b/app/assets/javascripts/ide/stores/actions/project.js index 02d6480adb3..75e332090cb 100644 --- a/app/assets/javascripts/ide/stores/actions/project.js +++ b/app/assets/javascripts/ide/stores/actions/project.js @@ -12,6 +12,7 @@ export const getProjectData = ( .then(res => res.data) .then((data) => { commit(types.SET_PROJECT, { projectPath: `${namespace}/${projectId}`, project: data }); + if (!state.currentProjectId) commit(types.SET_CURRENT_PROJECT, `${namespace}/${projectId}`); resolve(data); }) .catch(() => { |