fix staff panel #1192
This commit is contained in:
parent
7e6812784b
commit
eba5d3f4d7
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue