Fix for group picker in the user details page to accommodate missing userGroups value on a user

This commit is contained in:
Dean 2023-03-01 17:40:33 +00:00
parent 941b2e4200
commit c5fc4ea521
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
return list.map(item => {
return {
...item,
selected: selected.find(x => x === item._id) != null,
selected: selected?.find(x => x === item._id) != null,
}
})
}