diff --git a/x-pack/plugins/lens/public/xy_visualization/expression_thresholds.tsx b/x-pack/plugins/lens/public/xy_visualization/expression_thresholds.tsx index 51ea516eb2409..bf3af6cc94634 100644 --- a/x-pack/plugins/lens/public/xy_visualization/expression_thresholds.tsx +++ b/x-pack/plugins/lens/public/xy_visualization/expression_thresholds.tsx @@ -130,13 +130,10 @@ function getMarkerBody(label: string | undefined, isHorizontal: boolean) { if (!label) { return; } - const Label = ( + return isHorizontal ? (
{label}
- ); - return isHorizontal ? ( - Label ) : (
- {Label} + {label}