mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -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);
|
||||
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`;
|
||||
|
Loading…
Reference in New Issue
Block a user