diff options
author | Simon Knox <psimyn@gmail.com> | 2018-02-12 18:20:52 +1100 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2018-02-12 18:22:32 +1100 |
commit | 4e732deca8feb3d3c1a0538ddb9a98e3c442bb27 (patch) | |
tree | e79c8751a2981409cf7893f07cddbcba666b2943 /app | |
parent | 498ade4801a822f8704390b10d178af9fe7987cb (diff) | |
download | gitlab-ce-4e732deca8feb3d3c1a0538ddb9a98e3c442bb27.tar.gz |
Prevent MR Widget error when no CI configured34130-null-pipes
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/vue_merge_request_widget/mr_widget_options.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.js b/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.js index edf67fcd0a7..d8f0442ef9d 100644 --- a/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.js +++ b/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.js @@ -152,6 +152,7 @@ export default { }, handleNotification(data) { if (data.ci_status === this.mr.ciStatus) return; + if (!data.pipeline) return; const label = data.pipeline.details.status.label; const title = `Pipeline ${label}`; |