We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 228cbec commit 51687c7Copy full SHA for 51687c7
1 file changed
coderd/healthcheck/workspaceproxy.go
@@ -77,6 +77,10 @@ func (r *WorkspaceProxyReport) Run(ctx context.Context, opts *WorkspaceProxyRepo
77
}
78
79
r.WorkspaceProxies = proxies
80
+ if r.WorkspaceProxies.Regions == nil {
81
+ r.WorkspaceProxies.Regions = make([]codersdk.WorkspaceProxy, 0)
82
+ }
83
+
84
// Stable sort based on create timestamp.
85
sort.Slice(r.WorkspaceProxies.Regions, func(i int, j int) bool {
86
return r.WorkspaceProxies.Regions[i].CreatedAt.Before(r.WorkspaceProxies.Regions[j].CreatedAt)
0 commit comments