fix staff panel #1192
This commit is contained in:
parent
7e6812784b
commit
eba5d3f4d7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue