Commit d3496c45 authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Regis

Merge branch 'build-notification-null' into 'master'

Adds a null check to build notifications

Closes #27948

See merge request !9108
parent 42cce7d1
...@@ -154,7 +154,7 @@ require('./smart_interval'); ...@@ -154,7 +154,7 @@ require('./smart_interval');
return $.getJSON(this.opts.ci_status_url, (function(_this) { return $.getJSON(this.opts.ci_status_url, (function(_this) {
return function(data) { return function(data) {
var message, status, title; var message, status, title;
if (data.status === '') { if (!data.status) {
return; return;
} }
if (data.environments && data.environments.length) _this.renderEnvironments(data.environments); if (data.environments && data.environments.length) _this.renderEnvironments(data.environments);
......
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