Skip to content

Commit

Permalink
fix(table): unset data rows without causing nil pointer err
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni committed Sep 20, 2024
1 parent aff713d commit 62128fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func New() *Table {

// ClearRows clears the table rows.
func (t *Table) ClearRows() *Table {
t.data = nil
t.data = NewStringData()
return t
}

Expand Down

0 comments on commit 62128fd

Please sign in to comment.