Skip to content

Commit

Permalink
1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
acegoal07 committed Jul 17, 2023
1 parent 41c3a7f commit 93d87a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/InteractionPagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ exports.InteractionPagination = async(paginationInfo, options) => {
return;
// Button 4
case paginationInfo.buttonList[3].data.custom_id:
pageNumber = pageLength - 1 ;
pageNumber = pageLength - 1;
break;
// Button 5
case paginationInfo.buttonList[4].data.custom_id:
Expand Down
3 changes: 2 additions & 1 deletion src/lib/PaginationBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ exports.PaginationBase = async({
labelData.push(`${page.data.title}`);
}
} else {
for (let i=0; i<options.imageList ? paginationInfo.imageList.length : paginationInfo.pageList.length + 1; i++) {
const number = options.imageList ? paginationInfo.imageList.length : paginationInfo.pageList.length;
for (let i=0; i<number + 1; i++) {
labelData.push(`Page ${i + 1}`);
}
}
Expand Down

0 comments on commit 93d87a8

Please sign in to comment.