forked from mirror/pixelfed
Update Profile.vue
This commit is contained in:
parent
6f72994a49
commit
0b13561ee8
1 changed files with 5 additions and 3 deletions
|
@ -732,9 +732,11 @@ export default {
|
|||
'id[]': this.profileId
|
||||
}
|
||||
}).then(res => {
|
||||
this.relationship = res.data[0];
|
||||
if(res.data[0].blocking == true) {
|
||||
this.warning = true;
|
||||
if(res.length) {
|
||||
this.relationship = res.data[0];
|
||||
if(res.data[0].blocking == true) {
|
||||
this.warning = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue