We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f1995 commit 4dbf65cCopy full SHA for 4dbf65c
1 file changed
src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs
@@ -561,13 +561,13 @@ private void ResetVisibleColumnsCache()
561
for (var index = 0; index < _tableColumnStates.Count; index++)
562
{
563
var item = _tableColumnStates[index];
564
- if (item.Visible)
+ var col = Columns.Find(c => c.GetFieldName() == item.Name);
565
+ if (col != null)
566
- var col = Columns.Find(c => c.GetFieldName() == item.Name);
567
- if (col != null)
568
- {
569
- item.DisplayName = col.GetDisplayName();
+ item.DisplayName = col.GetDisplayName();
570
+ if (item.Visible)
+ {
571
// 增加到可见列缓存集合
572
_visibleColumnsCache.Add(col);
573
}
0 commit comments