Alerting: Always initialize an empty slice of routes for the routingtree (#112880)
This commit is contained in:
@@ -28,6 +28,7 @@ func ConvertToK8sResource(orgID int64, r definitions.Route, version string, name
|
||||
RepeatInterval: optionalPrometheusDurationToString(r.RepeatInterval),
|
||||
Receiver: r.Receiver,
|
||||
},
|
||||
Routes: make([]model.RoutingTreeRoute, 0, len(r.Routes)),
|
||||
}
|
||||
for _, route := range r.Routes {
|
||||
if route == nil {
|
||||
|
||||
Reference in New Issue
Block a user