Skip to content

Commit

Permalink
๐Ÿ› Fix: pagination index
Browse files Browse the repository at this point in the history
  • Loading branch information
ilp-sys committed May 13, 2024
1 parent 32ab2b3 commit eb01459
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aeye/app/(nav)/home/SearchResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const SearchResult: React.FC = () => {
event: React.ChangeEvent<unknown>,
page: number
) => {
setCurrentPage(page);
setCurrentPage(page - 1);
};

return (
Expand All @@ -76,8 +76,8 @@ const SearchResult: React.FC = () => {
>
<Vidgroup videos={results.videoDocuments} />
<Pagination
count={results.totalPage - 1}
page={currentPage}
count={results.totalPage}
page={currentPage + 1}
onChange={handlePaginationChange}
size="large"
/>
Expand Down

0 comments on commit eb01459

Please sign in to comment.