Skip to content
Snippets Groups Projects
Commit 214dd1f6 authored by lain's avatar lain
Browse files

Merge branch 'fix/typerror-in-delete-button' into 'develop'

fix typeError in delete_button.js

See merge request pleroma/pleroma-fe!215
parents 1730af76 0a623411
Branches
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ const DeleteButton = {
},
computed: {
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 }
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment