diff options
| author | taehoon <th.dev91@gmail.com> | 2019-12-15 14:29:45 -0500 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-12-15 14:30:09 -0500 |
| commit | 54f692622ad4fe6c427ae6d67816be93a7644ac8 (patch) | |
| tree | 13c7bd73c5a8bc1424aa8fa7a0eefd2203eaa341 /src/components/staff_panel/staff_panel.js | |
| parent | b739edb5090a81f477cb78081f40504a3e341abd (diff) | |
wire up staff accounts with correct store data
Diffstat (limited to 'src/components/staff_panel/staff_panel.js')
| -rw-r--r-- | src/components/staff_panel/staff_panel.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/staff_panel/staff_panel.js b/src/components/staff_panel/staff_panel.js index 93e950ad..4f98fff6 100644 --- a/src/components/staff_panel/staff_panel.js +++ b/src/components/staff_panel/staff_panel.js @@ -1,3 +1,4 @@ +import map from 'lodash/map' import BasicUserCard from '../basic_user_card/basic_user_card.vue' const StaffPanel = { @@ -6,7 +7,7 @@ const StaffPanel = { }, computed: { staffAccounts () { - return this.$store.state.instance.staffAccounts + return map(this.$store.state.instance.staffAccounts, nickname => this.$store.getters.findUser(nickname)).filter(_ => _) } } } |
