forked from AkkomaGang/akkoma-fe
Merge branch 'fix/typerror-in-delete-button' into 'develop'
fix typeError in delete_button.js See merge request pleroma/pleroma-fe!215
This commit is contained in:
commit
214dd1f6d1
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ const DeleteButton = {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
currentUser () { return this.$store.state.users.currentUser },
|
currentUser () { return this.$store.state.users.currentUser },
|
||||||
canDelete () { return this.currentUser.rights.delete_others_notice || this.status.user.id === this.currentUser.id }
|
canDelete () { return this.currentUser && this.currentUser.rights.delete_others_notice || this.status.user.id === this.currentUser.id }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue