suggestion but not messed up lines
This commit is contained in:
parent
46085528b9
commit
cdf3a5d959
1 changed files with 4 additions and 1 deletions
|
|
@ -208,7 +208,10 @@ export const useUsersStore = defineStore('users', {
|
|||
// Misc updates
|
||||
updateUserAdminData(id, data) {
|
||||
const user = this.users.get(id)
|
||||
|
||||
if (!user) {
|
||||
console.warn(`User id ${id} somehow not found during admin data update!`)
|
||||
return
|
||||
}
|
||||
user.adminData = data
|
||||
user.deactivated = !data.is_active
|
||||
user.tags = new Set(data.tags)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue