Skip to content

Commit

Permalink
Don't unnecessarily bump selectedPage
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasnaphas committed Mar 21, 2024
1 parent d29b11c commit e35ab19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend-create-haggadah/pages/read.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default function Read() {
<div id="pagination">
<Pagination
count={script.pages.length}
defaultPage={selectedPage + 1}
defaultPage={selectedPage}
color="primary"
onChange={(event, page) => {
console.log("event", event);
Expand Down

0 comments on commit e35ab19

Please sign in to comment.