fix user page not working in dev mode (thanks harper)

This commit is contained in:
notfire 2025-03-12 16:59:58 +01:00
parent 75950c670c
commit 88c56b553d

View file

@ -144,7 +144,7 @@ const UserProfile = {
const user = this.$store.getters.findUser(userNameOrId)
if (user) {
loadById(user.id)
this.note = user.relationship.note
this.note = user?.relationship?.note
this.$store.dispatch('setDisplayBackground', user.background_image)
} else {
this.$store.dispatch('fetchUser', userNameOrId)