Skip to content

Commit 748e0aa

Browse files
committed
Merge branch 'doc-refactor' into fix-tooltip
2 parents 08fc02d + 834a1ed commit 748e0aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BootstrapBlazor/Components/Table/Table.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ private async Task ProcessFirstRender()
11341134

11351135
if (ColumnOrderCallback != null)
11361136
{
1137-
cols = ColumnOrderCallback(cols).ToList();
1137+
cols = [.. ColumnOrderCallback(cols)];
11381138
}
11391139

11401140
await ReloadColumnOrdersFromBrowserAsync(cols);
@@ -1271,7 +1271,7 @@ public List<TItem> Rows
12711271
// https://gitee.com/LongbowEnterprise/BootstrapBlazor/issues/I5JG5D
12721272
// 如果 QueryItems 无默认值
12731273
// 页面 OnInitializedAsync 二刷再 OnAfterRender 过程中导致 QueryItems 变量为空 ToList 报错
1274-
RowsCache ??= IsTree ? TreeRows.GetAllItems() : (Items ?? QueryItems).ToList();
1274+
RowsCache ??= IsTree ? TreeRows.GetAllItems() : [.. (Items ?? QueryItems)];
12751275
return RowsCache;
12761276
}
12771277
}

0 commit comments

Comments
 (0)