mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: exclude zero entries again
This commit is contained in:
parent
69627fbe11
commit
650fffa344
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user