Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Aug 15, 2023
1 parent 6eee10b commit 3ab5ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/index-card-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class IndexCardSearchModel extends Model {
}

get nextPageCursor() {
if (this.searchResultPage.links.next?.hjref) {
if (this.searchResultPage.links.next?.href) {
const nextPageLinkUrl = new URL(this.searchResultPage.links.next?.href);
const nextPageLinkQueryParams = new URLSearchParams(nextPageLinkUrl.search);
return nextPageLinkQueryParams.get('page[cursor]');
Expand Down

0 comments on commit 3ab5ba5

Please sign in to comment.