From 4ae71c2b4fe8e6731fceadc3426cd70491398fe0 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Tue, 21 May 2019 12:21:51 +0200 Subject: [PATCH] No to rasie an error when stages are not provided --- app/assets/javascripts/jobs/store/mutations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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