mirror of
https://github.com/charmbracelet/gum
synced 2024-05-03 06:53:22 +02:00
fix(table): invalid column number
This commit is contained in:
parent
1426c2fed9
commit
b4c07eb3b9
|
@ -77,6 +77,9 @@ func (o Options) Run() error {
|
|||
|
||||
var rows = make([]table.Row, 0, len(data))
|
||||
for _, row := range data {
|
||||
if len(row) > len(columns) {
|
||||
return fmt.Errorf("invalid number of columns")
|
||||
}
|
||||
rows = append(rows, table.Row(row))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue