better fetchUserIfMissing
This commit is contained in:
parent
15cc5f44e9
commit
92ef3b1cd1
5 changed files with 96 additions and 37 deletions
|
|
@ -9,8 +9,8 @@ import { useUsersStore } from 'src/stores/users.js'
|
|||
const StaffPanel = {
|
||||
created() {
|
||||
const nicknames = useInstanceStore().staffAccounts
|
||||
nicknames.forEach((nickname) =>
|
||||
useUsersStore().fetchUserIfMissing(nickname),
|
||||
nicknames.forEach((name) =>
|
||||
useUsersStore().fetchUserIfMissing({ name }),
|
||||
)
|
||||
},
|
||||
components: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue