Skip to content

Commit a53857e

Browse files
committed
fix(pagination): clarifying comment
1 parent 6a05436 commit a53857e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clients/web/src/components/pagination/pagination.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ export const Pagination = ({
111111
const shownLinks = showOverflow ? [...links, ...endLink] : links
112112

113113
// We want to know if we should be activating the forward/backward based on
114-
// the position we are at in the sequence.
114+
// the position we are at in the sequence. If we are at the second page we will return
115+
// them to the base location (without /page)
115116
const disableBack = currentPage === 1
116117
const disableForward = currentPage === totalPages
117118
const backLink = currentPage === 2 ? pagePattern : `${pagePattern}/page/${currentPage - 1}`

0 commit comments

Comments
 (0)