Skip to content

Commit

Permalink
Don't pass empty bases to MergeItems when selecting user regions
Browse files Browse the repository at this point in the history
This keeps the 'bases' slice smaller.
  • Loading branch information
dominikh committed Aug 6, 2023
1 parent eca5063 commit df4df59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/gotraceui/span.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@ func (si *SpansInfo) Layout(win *theme.Window, gtx layout.Context) layout.Dimens
return label == needle
})

bases = append(bases, filtered)
if filtered.Len() > 0 {
bases = append(bases, filtered)
}
}
}

Expand Down

0 comments on commit df4df59

Please sign in to comment.