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

@ -47,8 +47,8 @@ const ListsNew = {
.fetchListAccounts({ listId: this.id })
.then(() => {
this.membersUserIds = this.findListAccounts(this.id)
this.membersUserIds.forEach((userId) => {
useUsersStore().fetchUserIfMissing(userId)
this.membersUserIds.forEach((id) => {
useUsersStore().fetchUserIfMissing({ id })
})
})
},