1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-29 20:29:28 -05:00

Fix undefined user page title ()

This commit is contained in:
Zero King 2021-04-12 14:07:12 +00:00 committed by GitHub
parent 1019e0bcfd
commit 3c3b4eb2af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -271,6 +271,7 @@ export default defineComponent({
data() {
return {
[symbols.PAGE_INFO]: computed(() => this.user ? {
title: this.user.name ? `${this.user.name} (@${this.user.username})` : `@${this.user.username}`,
userName: this.user,
avatar: this.user,
path: `/@${this.user.username}`,