diff --git a/app/assets/javascripts/jobs/store/mutations.js b/app/assets/javascripts/jobs/store/mutations.js
index f4523346e1b714d7c70462c84bffb566fdee42f7..714a8dec4b283339c749d51b3e191c48b7d59231 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