Patched user profile breaking when alerts can't be loaded.
This commit is contained in:
parent
0b825a61bb
commit
4242efbd4c
|
@ -101,7 +101,7 @@ import AddAlert from '../alerts/add.vue';
|
||||||
|
|
||||||
async function fetchUser() {
|
async function fetchUser() {
|
||||||
this.user = await this.$store.dispatch('fetchUser', this.$route.params.username);
|
this.user = await this.$store.dispatch('fetchUser', this.$route.params.username);
|
||||||
this.isMe = this.user.id === this.$store.state.auth.user?.id;
|
this.isMe = this.user?.id === this.$store.state.auth.user?.id;
|
||||||
|
|
||||||
this.pageTitle = this.user?.username;
|
this.pageTitle = this.user?.username;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue