fix: correct page number handling in Pagination component for accurate navigation

This commit is contained in:
faisolavolut 2025-02-28 08:01:09 +07:00
parent 2856081525
commit 668a0e13f8
1 changed files with 2 additions and 2 deletions

View File

@ -1141,8 +1141,8 @@ export const Pagination: React.FC<any> = ({
if (e?.label !== "...") {
local.page = getNumber(e?.label);
local.render();
onChangePage(local.page - 1);
setPage(local.page - 1);
onChangePage(local.page);
setPage(local.page);
list.reload();
}
}}