From 0a62341135de7e4f3bc5688c014f3a8e7fdc8347 Mon Sep 17 00:00:00 2001 From: qwexvf Date: Tue, 20 Mar 2018 22:33:43 +0900 Subject: [PATCH] fix typeError in delete_button.js not a big thing just fixes a typeError. --- src/components/delete_button/delete_button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } }