Commit 9d314242 authored by Winnie Hellmann's avatar Winnie Hellmann

Guard against missing manual actions / scheduled jobs in pipelines row

parent c02178b1
......@@ -60,7 +60,14 @@ export default {
},
computed: {
actions() {
return [...this.pipeline.details.manual_actions, ...this.pipeline.details.scheduled_actions];
if (!this.pipeline || !this.pipeline.details) {
return [];
}
const { details: pipelineDetails } = this.pipeline;
return [
...(pipelineDetails.manual_actions || []),
...(pipelineDetails.scheduled_actions || []),
];
},
/**
* If provided, returns the commit tag.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment