Alerting: Always initialize an empty slice of routes for the routingtree (#112880)

This commit is contained in:
Gilles De Mey
2025-10-23 17:21:13 +02:00
committed by GitHub
parent c74af4f3d4
commit 62c5df36d6
@@ -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 {