diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-05-21 12:21:51 +0200 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-05-24 10:04:42 +0100 |
commit | 4ae71c2b4fe8e6731fceadc3426cd70491398fe0 (patch) | |
tree | fcd3ffd57ae96f98e0a3d20dc811229fb0feeffd | |
parent | 087680d78034243ed1f223d8fdfb3a34c74e5eff (diff) | |
download | gitlab-ce-4ae71c2b4fe8e6731fceadc3426cd70491398fe0.tar.gz |
No to rasie an error when stages are not provided
-rw-r--r-- | app/assets/javascripts/jobs/store/mutations.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/jobs/store/mutations.js b/app/assets/javascripts/jobs/store/mutations.js index f4523346e1b..714a8dec4b2 100644 --- a/app/assets/javascripts/jobs/store/mutations.js +++ b/app/assets/javascripts/jobs/store/mutations.js @@ -65,7 +65,7 @@ export default { state.isLoading = false; state.job = job; - state.stages = job.pipeline.details.stages || []; + state.stages = ((job.pipeline || {}).details || {}).stages || []; /** * We only update it on the first request |