fix staff panel #1192

This commit is contained in:
Henry Jameson 2022-10-17 22:08:52 +03:00
parent 7e6812784b
commit eba5d3f4d7
1 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,8 @@ const StaffPanel = {
}, },
computed: { computed: {
groupedStaffAccounts () { 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') const groupedStaffAccounts = groupBy(staffAccounts, 'role')
return [ return [
@ -22,7 +23,7 @@ const StaffPanel = {
].filter(group => group.users) ].filter(group => group.users)
}, },
...mapGetters([ ...mapGetters([
'findUser' 'findUserByName'
]), ]),
...mapState({ ...mapState({
staffAccounts: state => state.instance.staffAccounts staffAccounts: state => state.instance.staffAccounts