Skip to content

Commit

Permalink
feat: handle exception pagination data
Browse files Browse the repository at this point in the history
  • Loading branch information
imyelo committed Jun 28, 2022
1 parent 6ff250d commit 1371261
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ function pagination (vm, { crossChapter }) {
next: new Link(links[index + 1]).toJSON(),
}
} catch (error) {
return {}
return {
route: {}
}
}
}

Expand Down Expand Up @@ -142,7 +144,7 @@ function getLocalizationTexts (options, path) {
texts[key] = text
} else {
Object.keys(text).some(local => {
const isMatch = path.indexOf(local) > -1
const isMatch = path && path.indexOf(local) > -1

texts[key] = isMatch ? text[local] : text

Expand Down

0 comments on commit 1371261

Please sign in to comment.