better fetchUserIfMissing

This commit is contained in:
Henry Jameson 2026-08-10 16:22:33 +03:00
commit 92ef3b1cd1
5 changed files with 96 additions and 37 deletions

View file

@ -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: {