Stop CI notification showing when status is nil

This commit is contained in:
Phil Hughes 2017-03-17 11:20:36 +00:00
parent 4bf4612cfb
commit d6c4453a92

View file

@ -176,7 +176,7 @@ import MiniPipelineGraph from './mini_pipeline_graph_dropdown';
_this.opts.ci_sha = data.sha;
_this.updateCommitUrls(data.sha);
}
if (showNotification) {
if (showNotification && data.status) {
status = _this.ciLabelForStatus(data.status);
if (status === "preparing") {
title = _this.opts.ci_title.preparing;