diff options
| author | qwexvf <qw3xvf@gmail.com> | 2018-03-20 22:33:43 +0900 |
|---|---|---|
| committer | qwexvf <qw3xvf@gmail.com> | 2018-03-20 22:33:43 +0900 |
| commit | 0a62341135de7e4f3bc5688c014f3a8e7fdc8347 (patch) | |
| tree | a0a9fb4ed4a8658245504e0714c3bd23f0370e74 /src/components/delete_button/delete_button.js | |
| parent | 90e3ab45d4aee7b693b8e404321adfe8339595e1 (diff) | |
fix typeError in delete_button.js
not a big thing just fixes a typeError.
Diffstat (limited to 'src/components/delete_button/delete_button.js')
| -rw-r--r-- | src/components/delete_button/delete_button.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/delete_button/delete_button.js b/src/components/delete_button/delete_button.js index 77da1b87..f2920666 100644 --- a/src/components/delete_button/delete_button.js +++ b/src/components/delete_button/delete_button.js @@ -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 } } } |
