Alerting: Fix state in expressions footer (#71441)

Fix state in expressions footer
This commit is contained in:
Sonia Aguilar 2023-07-12 13:44:39 +02:00 committed by GitHub
parent e7797ac439
commit 82a5770376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,8 +66,8 @@ export const Expression: FC<ExpressionProps> = ({
//const showSummary = isAlertCondition && hasResults;
const groupedByState = {
[PromAlertingRuleState.Firing]: series.filter((serie) => getSeriesValue(serie) >= 1),
[PromAlertingRuleState.Inactive]: series.filter((serie) => getSeriesValue(serie) < 1),
[PromAlertingRuleState.Firing]: series.filter((serie) => getSeriesValue(serie) !== 0),
[PromAlertingRuleState.Inactive]: series.filter((serie) => getSeriesValue(serie) === 0),
};
const renderExpressionType = useCallback(