diff --git a/app/models/index-card-search.ts b/app/models/index-card-search.ts index da7f647128..103cf169dd 100644 --- a/app/models/index-card-search.ts +++ b/app/models/index-card-search.ts @@ -23,7 +23,7 @@ export default class IndexCardSearchModel extends Model { relatedProperties!: RelatedPropertyPathModel[]; get firstPageCursor() { - if (this.searchResultPage.links.first?.href) { + if (this.searchResultPage.links?.first?.href) { const firstPageLinkUrl = new URL(this.searchResultPage.links.first?.href); return firstPageLinkUrl.searchParams.get('page[cursor]'); } @@ -31,7 +31,7 @@ export default class IndexCardSearchModel extends Model { } get prevPageCursor() { - if (this.searchResultPage.links.prev?.href) { + if (this.searchResultPage.links?.prev?.href) { const prevPageLinkUrl = new URL(this.searchResultPage.links.prev?.href); return prevPageLinkUrl.searchParams.get('page[cursor]'); } @@ -39,7 +39,7 @@ export default class IndexCardSearchModel extends Model { } get nextPageCursor() { - if (this.searchResultPage.links.next?.href) { + if (this.searchResultPage.links?.next?.href) { const nextPageLinkUrl = new URL(this.searchResultPage.links.next?.href); return nextPageLinkUrl.searchParams.get('page[cursor]'); } diff --git a/package.json b/package.json index 4bf66885a4..87b5ce6ada 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-osf-web", - "version": "23.10.0", + "version": "23.10.1", "private": true, "description": "Ember front-end for the Open Science Framework", "homepage": "https://github.com/CenterForOpenScience/ember-osf-web#readme",