[Metrics UI] Fix isAbove to only display when threshold set (#65540)

This commit is contained in:
Chris Cowan 2020-05-07 11:49:27 -07:00 committed by GitHub
parent 2903e2fc76
commit df0f0c341f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,7 +224,7 @@ export const ExpressionChart: React.FC<Props> = ({
/>
</>
) : null}
{isAbove ? (
{isAbove && first(expression.threshold) != null ? (
<RectAnnotation
id="upper-threshold"
style={{