[v10.0.x] Alerting: Fix state in expressions footer (#71443)
Alerting: Fix state in expressions footer (#71441)
Fix state in expressions footer
(cherry picked from commit 82a5770376)
Co-authored-by: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com>
This commit is contained in:
co-authored by
Sonia Aguilar
parent
1f13067103
commit
73f37c7a21
@@ -60,8 +60,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(
|
||||
|
||||
Reference in New Issue
Block a user