fix(module: table): Table tree children limit remove (#1345)

This commit is contained in:
Andrzej Bakun 2021-04-14 04:45:45 +02:00 committed by GitHub
parent d64388c0ab
commit 941f58cc65

View File

@ -146,7 +146,6 @@ RenderFragment<(Table<TItem> table, IEnumerable<TItem> showItems, int level)> bo
var table = context.table; var table = context.table;
var showItems = context.showItems; var showItems = context.showItems;
var level = context.level; var level = context.level;
var count = Math.Min(showItems.Count(), table._dataSourceCount);
} }
@if (table._total <= 0) @if (table._total <= 0)
@ -159,7 +158,7 @@ RenderFragment<(Table<TItem> table, IEnumerable<TItem> showItems, int level)> bo
} }
else if (showItems != null && table.ColumnContext.Columns.Count > 0) 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 rowIndex = table.PageSize * (table.PageIndex - 1) + i + 1;
var data = showItems.ElementAt(i); var data = showItems.ElementAt(i);