mirror of
https://github.com/grafana/grafana.git
synced 2025-01-08 23:23:45 -06:00
Alerting: Fix state in expressions footer (#71441)
Fix state in expressions footer
This commit is contained in:
parent
e7797ac439
commit
82a5770376
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user