Skip to content

Commit

Permalink
fix: use correct groupBy override
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKetmo committed Nov 14, 2024
1 parent 3e8837a commit ccf8c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/alerts/template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function AlertsTemplate(props: Props) {
// Group alerts by specified field
const alertGroups: Group[] = Object.entries(
flatAlerts.reduce((acc: Record<string, Alert[]>, alert: Alert) => {
const cluster = alert.labels[view.groupBy]
const cluster = alert.labels[groupBy]
if (!acc[cluster]) {
acc[cluster] = []
}
Expand Down

0 comments on commit ccf8c03

Please sign in to comment.