From a9171aa9fe8a55ee3ad4107b2fc2aef5c477175e Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Fri, 14 Jun 2024 12:41:01 +0100 Subject: [PATCH] Alerting: Fix display of falsy alert values in state history (#89156) --- public/app/features/alerting/unified/components/Label.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/public/app/features/alerting/unified/components/Label.tsx b/public/app/features/alerting/unified/components/Label.tsx index 3d1b4d11d39..bef7c86d408 100644 --- a/public/app/features/alerting/unified/components/Label.tsx +++ b/public/app/features/alerting/unified/components/Label.tsx @@ -33,11 +33,9 @@ const Label = ({ label, value, icon, color, size = 'md' }: Props) => { )} - {value && ( -
- {value} -
- )} +
+ {value ?? '-'} +
);