Skip to content

Commit 419f21a

Browse files
committed
fix: Remove duplicate code in ApplyFiltering
1 parent ebe7309 commit 419f21a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

SimpleDataGrid/Pagination/PagedCollection.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -387,17 +387,7 @@ private void ApplyFiltering(bool maintainPosition = false)
387387
{
388388
_currentPage = 0;
389389
}
390-
RaiseAllChanged();
391390

392-
if (maintainPosition && _filtered.Any())
393-
{
394-
_currentPage = Math.Clamp(oldFirstItemIndex / _pageSize, 0, TotalPages - 1);
395-
}
396-
else
397-
{
398-
_currentPage = 0;
399-
}
400-
RaiseAllChanged();
401391
}
402392

403393
private static string WildcardToRegex(string pattern)

0 commit comments

Comments
 (0)