diff --git a/components/table/Table.razor b/components/table/Table.razor index 87eb5515..dba1d46a 100644 --- a/components/table/Table.razor +++ b/components/table/Table.razor @@ -146,7 +146,6 @@ RenderFragment<(Table table, IEnumerable showItems, int level)> bo var table = context.table; var showItems = context.showItems; var level = context.level; - var count = Math.Min(showItems.Count(), table._dataSourceCount); } @if (table._total <= 0) @@ -159,7 +158,7 @@ RenderFragment<(Table table, IEnumerable showItems, int level)> bo } else if (showItems != null && table.ColumnContext.Columns.Count > 0) { - for (int i = 0; i < count; i++) + for (int i = 0; i < showItems.Count(); i++) { var rowIndex = table.PageSize * (table.PageIndex - 1) + i + 1; var data = showItems.ElementAt(i);