Commit 56aae9ff authored by Filipa Lacerda's avatar Filipa Lacerda

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

Adds a null check to build notifications

Closes #27948

See merge request !9108
parents 80427fbd bc261b08
......@@ -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);
......
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