logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: eba5d3f4d7cc41b5f33d8e22704c418927dee105
parent 7e6812784b4f91ec0084839b51a68dfd26924116
Author: Henry Jameson <me@hjkos.com>
Date:   Mon, 17 Oct 2022 22:08:52 +0300

fix staff panel #1192

Diffstat:

Msrc/components/staff_panel/staff_panel.js5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/components/staff_panel/staff_panel.js b/src/components/staff_panel/staff_panel.js @@ -13,7 +13,8 @@ const StaffPanel = { }, computed: { groupedStaffAccounts () { - const staffAccounts = map(this.staffAccounts, this.findUser).filter(_ => _) + const staffAccounts = map(this.staffAccounts, this.findUserByName).filter(_ => _) + console.log(staffAccounts) const groupedStaffAccounts = groupBy(staffAccounts, 'role') return [ @@ -22,7 +23,7 @@ const StaffPanel = { ].filter(group => group.users) }, ...mapGetters([ - 'findUser' + 'findUserByName' ]), ...mapState({ staffAccounts: state => state.instance.staffAccounts