Fix for group picker in the user details page to accommodate missing userGroups value on a user
This commit is contained in:
parent
941b2e4200
commit
c5fc4ea521
|
@ -18,7 +18,7 @@
|
||||||
return list.map(item => {
|
return list.map(item => {
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
selected: selected.find(x => x === item._id) != null,
|
selected: selected?.find(x => x === item._id) != null,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue