diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-05-21 13:21:51 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-05-24 12:04:42 +0300 |
commit | 4ae71c2b4fe8e6731fceadc3426cd70491398fe0 (patch) | |
tree | fcd3ffd57ae96f98e0a3d20dc811229fb0feeffd /app/assets/javascripts/jobs/store | |
parent | 087680d78034243ed1f223d8fdfb3a34c74e5eff (diff) |
No to rasie an error when stages are not provided
Diffstat (limited to 'app/assets/javascripts/jobs/store')
-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 |