mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
fix(module: table): check null in set sorter method (#1423)
This commit is contained in:
parent
b22f9495f4
commit
bcb9effc75
@ -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<TableFilter<TData>>() {GetNewFilter()};
|
||||
Filters = new List<TableFilter<TData>>() { GetNewFilter() };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user