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');
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