Skip to content

Commit df0f0c3

Browse files
authored
[Metrics UI] Fix isAbove to only display when threshold set (#65540)
1 parent 2903e2f commit df0f0c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export const ExpressionChart: React.FC<Props> = ({
224224
/>
225225
</>
226226
) : null}
227-
{isAbove ? (
227+
{isAbove && first(expression.threshold) != null ? (
228228
<RectAnnotation
229229
id="upper-threshold"
230230
style={{

0 commit comments

Comments
 (0)