Skip to content

Commit 74c0720

Browse files
committed
Further cleanup.
1 parent 8af5e69 commit 74c0720

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/Records/Record/GeneralInfo/DOITitle.vue

+5-3
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default {
107107
return {
108108
copyButtonStatus: false,
109109
finalImageWidth:'100px',
110-
newImg:{src:'/'}
110+
newImg: { src: '/' }
111111
}
112112
},
113113
computed: {
@@ -120,7 +120,9 @@ export default {
120120
newImg.addEventListener('load', (e) => {
121121
resolve(e.target)
122122
})
123-
newImg.src = this.getAPIEndPoint() + '/' + this.currentRecord['fairsharingRecord'].urlForLogo;
123+
if (this.currentRecord['fairsharingRecord'].urlForLogo) {
124+
newImg.src = this.getAPIEndPoint() + '/' + this.currentRecord['fairsharingRecord'].urlForLogo;
125+
}
124126
})
125127
let image = await promiseImageLoader()
126128
await this.setImageAfterLoading(image)
@@ -130,7 +132,7 @@ export default {
130132
if (image.width > image.height * 2) {
131133
this.finalImageWidth = '300px'
132134
}
133-
this.newImg.src = image.src
135+
this.newImg.src = image.src;
134136
},
135137
generateDoiLink(doi) {
136138
return `https://doi.org/${doi}`

0 commit comments

Comments
 (0)