From 5f8c04d1a6b8c2a813e971510622dee8a385951d Mon Sep 17 00:00:00 2001 From: Vikram Raj Date: Tue, 9 Dec 2025 14:15:01 +0530 Subject: [PATCH] show DASH to routing labels column when receiver doesn't have routing labels --- .../monitoring/alertmanager/alertmanager-config.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/public/components/monitoring/alertmanager/alertmanager-config.tsx b/frontend/public/components/monitoring/alertmanager/alertmanager-config.tsx index 2912af3470f..fd5113f485e 100644 --- a/frontend/public/components/monitoring/alertmanager/alertmanager-config.tsx +++ b/frontend/public/components/monitoring/alertmanager/alertmanager-config.tsx @@ -52,6 +52,7 @@ import { ResourceMetadata, } from '@console/app/src/components/data-view/types'; import { RowProps, TableColumn } from '@console/dynamic-plugin-sdk/src/extensions/console-types'; +import { DASH } from '@console/shared/src/constants/ui'; export enum InitialReceivers { Critical = 'Critical', @@ -229,12 +230,9 @@ const RoutingLabels: React.FC = ({ data }) => { const { labels, matchers } = data; const lbls = _.map(labels || {}, (value, key) => `${key}=${value}`); const values = [...lbls, ...(matchers ?? [])]; - return values.length > 0 ? ( - {values.map((value, i) => ( - {value} - ))} + {values.map((value, i) => (value ? {value} : DASH))} ) : null; };