summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFilipa Lacerda <lacerda.filipa@gmail.com>2017-02-09 18:37:48 +0000
committerFilipa Lacerda <lacerda.filipa@gmail.com>2017-02-09 18:37:48 +0000
commit56aae9ff26875e238e5cd3930da19a24e79273ce (patch)
tree70a0c3f800678ad590b660b275da455651029288 /app
parent80427fbd20920a99f0c02866217ade695b774707 (diff)
parentbc261b082063103cd16eec30c3d7ab9b487a6ece (diff)
downloadgitlab-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.es62
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);