Skip to content

Commit

Permalink
Fix #2195 by changing moment hash value is calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij committed Jun 17, 2024
1 parent f40a578 commit d04a2d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Components/DataGrid/FluentDataGrid.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ private async Task RefreshDataCoreAsync()
else
{
// If we're not using Virtualize, we build and execute a request against the items provider directly
_lastRefreshedPaginationStateHash = Pagination?.GetHashCode();
var startIndex = Pagination is null ? 0 : (Pagination.CurrentPageIndex * Pagination.ItemsPerPage);
GridItemsProviderRequest<TGridItem> request = new(
startIndex, Pagination?.ItemsPerPage, _sortByColumn, _sortByAscending, thisLoadCts.Token);
Expand All @@ -477,6 +476,7 @@ private async Task RefreshDataCoreAsync()
_pendingDataLoadCancellationTokenSource = null;
}
_internalGridContext.ResetRowIndexes(startIndex);
_lastRefreshedPaginationStateHash = Pagination?.GetHashCode();
}

StateHasChanged();
Expand Down

0 comments on commit d04a2d8

Please sign in to comment.