Skip to content

Commit

Permalink
Performance issue solved (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
maije authored Nov 30, 2022
1 parent 8398234 commit 4258cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Spectre.Console/Widgets/Table/TableRowCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public int Add(IEnumerable<IRenderable> columns)
{
var row = CreateRow(columns);
_list.Add(row);
return _list.IndexOf(row);
return _list.Count - 1;
}
}

Expand Down

0 comments on commit 4258cbf

Please sign in to comment.