diff options
author | Filipa Lacerda <lacerda.filipa@gmail.com> | 2017-02-09 18:37:48 +0000 |
---|---|---|
committer | Filipa Lacerda <lacerda.filipa@gmail.com> | 2017-02-09 18:37:48 +0000 |
commit | 56aae9ff26875e238e5cd3930da19a24e79273ce (patch) | |
tree | 70a0c3f800678ad590b660b275da455651029288 /app | |
parent | 80427fbd20920a99f0c02866217ade695b774707 (diff) | |
parent | bc261b082063103cd16eec30c3d7ab9b487a6ece (diff) | |
download | gitlab-ce-56aae9ff26875e238e5cd3930da19a24e79273ce.tar.gz |
Merge branch 'build-notification-null' into 'master'
Adds a null check to build notifications
Closes #27948
See merge request !9108
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/merge_request_widget.js.es6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/merge_request_widget.js.es6 b/app/assets/javascripts/merge_request_widget.js.es6 index e5d2d706fc7..69aed77c83d 100644 --- a/app/assets/javascripts/merge_request_widget.js.es6 +++ b/app/assets/javascripts/merge_request_widget.js.es6 @@ -154,7 +154,7 @@ require('./smart_interval'); return $.getJSON(this.opts.ci_status_url, (function(_this) { return function(data) { var message, status, title; - if (data.status === '') { + if (!data.status) { return; } if (data.environments && data.environments.length) _this.renderEnvironments(data.environments); |