Skip to content

Commit

Permalink
Fix sparkline panic with no data
Browse files Browse the repository at this point in the history
  • Loading branch information
zix99 committed Jan 4, 2025
1 parent a21f24e commit 95aa30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/multiterm/termrenderers/spark.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (s *Spark) WriteTable(agg *aggregation.TableAggregator, rowSorter, colSorte
sb.Grow(len(colNames))

// Write header
{
if len(colNames) > 0 {
dots := len(colNames) - len(colNames[0]) - len(colNames[len(colNames)-1])
if dots < 0 {
dots = 0
Expand Down

0 comments on commit 95aa30b

Please sign in to comment.