From 8eaea306b8de696173c897668d8fb1119817b408 Mon Sep 17 00:00:00 2001 From: Bartosz Leper Date: Sat, 21 Sep 2024 22:50:38 +0200 Subject: [PATCH] Fix a field name bug in cluster alert banners This bug prevented links from being properly rendered. --- web/packages/teleport/src/Main/Main.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/packages/teleport/src/Main/Main.tsx b/web/packages/teleport/src/Main/Main.tsx index 2ed373312d8da..ee3c3d79f76d0 100644 --- a/web/packages/teleport/src/Main/Main.tsx +++ b/web/packages/teleport/src/Main/Main.tsx @@ -188,7 +188,7 @@ export function Main(props: MainProps) { const banners: BannerType[] = alerts.map(alert => ({ message: alert.spec.message, severity: mapSeverity(alert.spec.severity), - link: alert.metadata.labels[LINK_DESTINATION_LABEL], + linkDestination: alert.metadata.labels[LINK_DESTINATION_LABEL], linkText: alert.metadata.labels[LINK_TEXT_LABEL], id: alert.metadata.name, }));