logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: 214dd1f6d14073c26316bf5344f03b4b6af999b2
parent: 1730af76451f3819223e83e8cd445b090187f527
Author: lambda <pleromagit@rogerbraun.net>
Date:   Tue,  3 Apr 2018 09:13:44 +0000

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

fix typeError in delete_button.js

See merge request pleroma/pleroma-fe!215

Diffstat:

Msrc/components/delete_button/delete_button.js2+-
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 @@ -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 } } }