Added extra check if user property is not null to prevent errors.

This commit is contained in:
Dries Cruyskens 2020-06-26 17:05:02 +02:00
parent eef33a27a8
commit 51efbe4e29

View File

@ -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
},