Skip to content

Commit

Permalink
refactor: 增加 PageIndex 保护
Browse files Browse the repository at this point in the history
  • Loading branch information
ArgoZhang committed Jan 11, 2024
1 parent 2a24cac commit 9089f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/Components/Table/Table.razor.Edit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ private QueryPageOptions BuildQueryPageOptions()
var queryOption = new QueryPageOptions()
{
IsPage = IsPagination,
PageIndex = PageIndex,
PageIndex = Math.Max(1, PageIndex),
PageItems = PageItems,
SearchText = SearchText,
SortOrder = SortOrder,
Expand Down

0 comments on commit 9089f84

Please sign in to comment.