From 4258cbfb85ceee837b2c5bc52eca077970d120b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Finat=20S=C3=A1ez?= <39513527+maije@users.noreply.github.com> Date: Wed, 30 Nov 2022 18:13:31 +0100 Subject: [PATCH] Performance issue solved (#1096) --- src/Spectre.Console/Widgets/Table/TableRowCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Spectre.Console/Widgets/Table/TableRowCollection.cs b/src/Spectre.Console/Widgets/Table/TableRowCollection.cs index 6510c81a6..b8f2f93bf 100644 --- a/src/Spectre.Console/Widgets/Table/TableRowCollection.cs +++ b/src/Spectre.Console/Widgets/Table/TableRowCollection.cs @@ -58,7 +58,7 @@ public int Add(IEnumerable columns) { var row = CreateRow(columns); _list.Add(row); - return _list.IndexOf(row); + return _list.Count - 1; } }