mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Return empty list on export if no rules exist (#69023)
This commit is contained in:
parent
74fd874365
commit
5717d8954f
@ -467,6 +467,10 @@ func (service *AlertRuleService) GetAlertGroupsWithFolderTitle(ctx context.Conte
|
||||
namespaces[r.NamespaceUID] = append(namespaces[r.NamespaceUID], &groupKey)
|
||||
}
|
||||
|
||||
if len(namespaces) == 0 {
|
||||
return []models.AlertRuleGroupWithFolderTitle{}, nil
|
||||
}
|
||||
|
||||
dq := dashboards.GetDashboardsQuery{
|
||||
DashboardUIDs: nil,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user