Skip to content

Commit

Permalink
Merge pull request #47 from 10ego/patch-1
Browse files Browse the repository at this point in the history
Fix reading length of undefined at findFirstPage
  • Loading branch information
LoneRifle authored Mar 17, 2021
2 parents d9166f3 + cc82bb4 commit 2df1275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/page-number-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ exports.findFirstPage = (pageIndexNumMap) => {
return
}

for (let x = 0; x < keys.length; x++) {
for (let x = 0; x < keys.length - 1; x++) {
const firstPage = pageIndexNumMap[keys[x]]
const secondPage = pageIndexNumMap[keys[x + 1]]
const prevCounter = counter
Expand Down

0 comments on commit 2df1275

Please sign in to comment.