From 941f58cc651b74a9d080ec56052cd3bd74bd62e9 Mon Sep 17 00:00:00 2001 From: Andrzej Bakun Date: Wed, 14 Apr 2021 04:45:45 +0200 Subject: [PATCH] fix(module: table): Table tree children limit remove (#1345) --- components/table/Table.razor | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);