Merge pull request #125 from ClusterCockpit/hotfix

Fix bug for histogram only query
This commit is contained in:
Jan Eitzinger 2023-06-09 16:09:38 +02:00 committed by GitHub
commit 05ec0a4973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,6 +274,8 @@ func (r *queryResolver) JobsStatistics(ctx context.Context, filter []*model.JobF
} }
} else { } else {
stats = make([]*model.JobsStatistics, 0, 1) stats = make([]*model.JobsStatistics, 0, 1)
stats = append(stats,
&model.JobsStatistics{})
} }
if groupBy != nil { if groupBy != nil {