Skip to content

Commit

Permalink
Update src/Masa.Blazor/Components/Pagination/MPagination.razor.cs
Browse files Browse the repository at this point in the history
Co-authored-by: capdiem <capdiem@live.com>
  • Loading branch information
VleaStwo and capdiem authored Aug 1, 2024
1 parent d43b325 commit f893da2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Masa.Blazor/Components/Pagination/MPagination.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,9 @@ private bool InitializeIsAuto()
{
if (isAuto is null)
{
var minichangedHasDelegate = MiniVariantChanged.HasDelegate;
var miniHasDelegate = IsDirtyParameter(nameof(MiniVariant));
isAuto = (minichangedHasDelegate, miniHasDelegate) switch
var hasDelegate = MiniVariantChanged.HasDelegate;
var isDirty = IsDirtyParameter(nameof(MiniVariant));
isAuto = (hasDelegate, isDirty) switch
{
(true, true) => true,
(false, true) => false,
Expand Down

0 comments on commit f893da2

Please sign in to comment.