We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da6b0a3 commit 4afc23bCopy full SHA for 4afc23b
coderd/notifications/reports/generator.go
@@ -214,7 +214,7 @@ func buildDataForReportFailedWorkspaceBuilds(stats database.GetWorkspaceBuildSta
214
for _, failedBuild := range failedBuilds {
215
c := len(templateVersions)
216
217
- if len(templateVersions) == 0 || templateVersions[c-1]["template_version_name"] != failedBuild.TemplateVersionName {
+ if c == 0 || templateVersions[c-1]["template_version_name"] != failedBuild.TemplateVersionName {
218
templateVersions = append(templateVersions, map[string]any{
219
"template_version_name": failedBuild.TemplateVersionName,
220
"failed_count": 1,
0 commit comments