Skip to content

Commit

Permalink
fix: handle no resource set initially
Browse files Browse the repository at this point in the history
  • Loading branch information
rwd committed Nov 27, 2024
1 parent 2cb4f76 commit 3b2c0b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/portal/src/components/item/ItemMediaPresentation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@
},
thumbnail() {
return this.resource.edm.thumbnails?.(this.$nuxt.context)?.large;
return this.resource?.edm.thumbnails?.(this.$nuxt.context)?.large;
},
imageTypeResource() {
return this.resource.edm.isHTMLImage;
return this.resource?.edm.isHTMLImage;
},
addPaginationToolbarMaxWidth() {
Expand Down

0 comments on commit 3b2c0b2

Please sign in to comment.