mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05: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:
@@ -80,7 +80,10 @@ export const AlertInstances = ({
|
||||
handleInstancesLimit(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
|
||||
? `Showing ${INSTANCES_DISPLAY_LIMIT} of ${grafanaTotalInstances} instances`
|
||||
: `Showing all ${grafanaTotalInstances} instances`;
|
||||
|
||||
Reference in New Issue
Block a user