mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Added extra check if user property is not null to prevent errors.
This commit is contained in:
parent
eef33a27a8
commit
51efbe4e29
@ -72,6 +72,7 @@ export default {
|
||||
return 'Profile header image of ' + this.user.name
|
||||
},
|
||||
profileHeaderUrl() {
|
||||
if (this.user == null || this.user.profileHeader == null) return false
|
||||
const { profileHeader } = this.user
|
||||
return profileHeader && profileHeader.url
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user