Commit 74c0720 1 parent 8af5e69 commit 74c0720 Copy full SHA for 74c0720
File tree 1 file changed +5
-3
lines changed
src/components/Records/Record/GeneralInfo
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ export default {
107
107
return {
108
108
copyButtonStatus: false ,
109
109
finalImageWidth: ' 100px' ,
110
- newImg: { src: ' /' }
110
+ newImg: { src: ' /' }
111
111
}
112
112
},
113
113
computed: {
@@ -120,7 +120,9 @@ export default {
120
120
newImg .addEventListener (' load' , (e ) => {
121
121
resolve (e .target )
122
122
})
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
+ }
124
126
})
125
127
let image = await promiseImageLoader ()
126
128
await this .setImageAfterLoading (image)
@@ -130,7 +132,7 @@ export default {
130
132
if (image .width > image .height * 2 ) {
131
133
this .finalImageWidth = ' 300px'
132
134
}
133
- this .newImg .src = image .src
135
+ this .newImg .src = image .src ;
134
136
},
135
137
generateDoiLink (doi ) {
136
138
return ` https://doi.org/${ doi} `
You can’t perform that action at this time.
0 commit comments