mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting:Fix alert panel not rendering correct number for cloud rules instances (#67487)
Fix alert panel not rendering correct number for cloud rules instances
This commit is contained in:
parent
533f8caafd
commit
b5fbce50b3
@ -80,7 +80,10 @@ export const AlertInstances = ({
|
|||||||
handleInstancesLimit(true);
|
handleInstancesLimit(true);
|
||||||
setDisplayInstances(true);
|
setDisplayInstances(true);
|
||||||
};
|
};
|
||||||
const totalInstancesNumber = limitInstances ? grafanaFilteredInstancesTotal : filteredAlerts.length;
|
const totalInstancesGrafana = limitInstances ? grafanaFilteredInstancesTotal : filteredAlerts.length;
|
||||||
|
const totalInstancesNotGrafana = filteredAlerts.length;
|
||||||
|
const totalInstancesNumber = isGrafanaAlert ? totalInstancesGrafana : totalInstancesNotGrafana;
|
||||||
|
|
||||||
const limitStatus = limitInstances
|
const limitStatus = limitInstances
|
||||||
? `Showing ${INSTANCES_DISPLAY_LIMIT} of ${grafanaTotalInstances} instances`
|
? `Showing ${INSTANCES_DISPLAY_LIMIT} of ${grafanaTotalInstances} instances`
|
||||||
: `Showing all ${grafanaTotalInstances} instances`;
|
: `Showing all ${grafanaTotalInstances} instances`;
|
||||||
|
Loading…
Reference in New Issue
Block a user