From ccf8c0304693204a88eef93afb38f8bd3bd00184 Mon Sep 17 00:00:00 2001 From: Matthieu Moquet Date: Thu, 14 Nov 2024 12:03:35 +0100 Subject: [PATCH] fix: use correct groupBy override --- src/components/alerts/template.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/alerts/template.tsx b/src/components/alerts/template.tsx index 817081c..0f871f9 100644 --- a/src/components/alerts/template.tsx +++ b/src/components/alerts/template.tsx @@ -62,7 +62,7 @@ export function AlertsTemplate(props: Props) { // Group alerts by specified field const alertGroups: Group[] = Object.entries( flatAlerts.reduce((acc: Record, alert: Alert) => { - const cluster = alert.labels[view.groupBy] + const cluster = alert.labels[groupBy] if (!acc[cluster]) { acc[cluster] = [] }