File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Razor" >
22
33 <PropertyGroup >
4- <Version >10.6.1-beta21 </Version >
4+ <Version >10.6.1-beta22 </Version >
55 </PropertyGroup >
66
77 <ItemGroup >
Original file line number Diff line number Diff line change @@ -561,13 +561,13 @@ private void ResetVisibleColumnsCache()
561561 for ( var index = 0 ; index < _tableColumnStates . Count ; index ++ )
562562 {
563563 var item = _tableColumnStates [ index ] ;
564- if ( item . Visible )
564+ var col = Columns . Find ( c => c . GetFieldName ( ) == item . Name ) ;
565+ if ( col != null )
565566 {
566- var col = Columns . Find ( c => c . GetFieldName ( ) == item . Name ) ;
567- if ( col != null )
568- {
569- item . DisplayName = col . GetDisplayName ( ) ;
567+ item . DisplayName = col . GetDisplayName ( ) ;
570568
569+ if ( item . Visible )
570+ {
571571 // 增加到可见列缓存集合
572572 _visibleColumnsCache . Add ( col ) ;
573573 }
You can’t perform that action at this time.
0 commit comments