Alerting: Fix alert rule list view summaries (#98433)

This commit is contained in:
jackyin 2025-01-06 22:39:31 +08:00 committed by GitHub
parent 88fb8bc95c
commit 17ed25e101
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -368,7 +368,9 @@ function calculateAllGroupsTotals(groups: CombinedRuleGroup[]): AlertGroupTotals
totals[key] = 0;
}
totals[key] += value;
if (value !== undefined && value !== null) {
totals[key] += value;
}
});
});