diff --git a/components/table/Column.razor.cs b/components/table/Column.razor.cs index 2c944f19..ea62d0ee 100644 --- a/components/table/Column.razor.cs +++ b/components/table/Column.razor.cs @@ -263,7 +263,7 @@ namespace AntDesign private void SetSorter(SortDirection sortDirection) { _sortDirection = sortDirection; - SortModel.SetSortDirection(sortDirection); + SortModel?.SetSortDirection(sortDirection); } private void ToggleTreeNode() @@ -379,7 +379,7 @@ namespace AntDesign private void InitFilters() { - Filters = new List>() {GetNewFilter()}; + Filters = new List>() { GetNewFilter() }; } } }