File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/BootstrapBlazor/Components/Table Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments