Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
ScarletKuro committed Apr 3, 2024
1 parent 6a3060e commit bc5313b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/MudBlazor/Components/DataGrid/FooterContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ public bool? IsAllSelected
{
get
{

if (_dataGrid.Selection != null && (Items?.Any() ?? false))
if (_dataGrid.Selection is not null && (Items?.Any() ?? false))
{
if (_dataGrid.Selection.Count == Items.Count())
{
return true;
}
else if (_dataGrid.Selection.Count == 0)

if (_dataGrid.Selection.Count == 0)
{
return false;
}
Expand Down
8 changes: 4 additions & 4 deletions src/MudBlazor/Components/DataGrid/HeaderContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ public bool? IsAllSelected
{
get
{

if (_dataGrid.Selection != null && (Items?.Any() ?? false))
if (_dataGrid.Selection is not null && (Items?.Any() ?? false))
{
if (_dataGrid.Selection.Count == Items.Count())
{
return true;
}
else if (_dataGrid.Selection.Count == 0)

if (_dataGrid.Selection.Count == 0)
{
return false;
}
Expand All @@ -59,7 +59,7 @@ public HeaderContext(MudDataGrid<T> dataGrid)

public class HeaderActions
{
public Func<bool?, Task> SetSelectAllAsync { get; init; } = null!;
public required Func<bool?, Task> SetSelectAllAsync { get; init; }
}
}
}

0 comments on commit bc5313b

Please sign in to comment.