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:
lambda 2018-04-03 09:13:44 +00:00
commit 214dd1f6d1

View file

@ -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 }
} }
} }