From df0f0c341f5d885b0a87f90e32aa7c13c67cbd30 Mon Sep 17 00:00:00 2001 From: Chris Cowan Date: Thu, 7 May 2020 11:49:27 -0700 Subject: [PATCH] [Metrics UI] Fix isAbove to only display when threshold set (#65540) --- .../alerting/metric_threshold/components/expression_chart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_chart.tsx b/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_chart.tsx index a600d59865cc..82e751627a05 100644 --- a/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_chart.tsx +++ b/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_chart.tsx @@ -224,7 +224,7 @@ export const ExpressionChart: React.FC = ({ /> ) : null} - {isAbove ? ( + {isAbove && first(expression.threshold) != null ? (