Safe check
This commit is contained in:
parent
d5466244d4
commit
536097558d
|
|
@ -127,7 +127,7 @@ module.exports = function(
|
|||
|
||||
const limitMetric = metrics[slackOptions.limitMetric];
|
||||
// if we failed with a run, we don't have the metric and just make it dangerous
|
||||
if (limitMetric === undefined) {
|
||||
if (limitMetric === undefined || (limitMetric && !limitMetric.metric)) {
|
||||
color = 'danger';
|
||||
} else {
|
||||
if (slackOptions.limitMetric === 'coachScore') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue