fix: exclude zero entries again

This commit is contained in:
Ferdinand Mütsch 2021-06-12 12:06:24 +02:00
parent 69627fbe11
commit 650fffa344
1 changed files with 3 additions and 1 deletions

View File

@ -261,7 +261,9 @@ func (srv *SummaryService) withProjectLabels(summary *models.Summary) *models.Su
labels := make([]*models.SummaryItem, 0, len(labelMap))
for _, v := range labelMap {
labels = append(labels, v)
if v.Total > 0 {
labels = append(labels, v)
}
}
summary.Labels = labels
return summary