Fix for group picker in the user details page to accommodate missing userGroups value on a user
This commit is contained in:
parent
8dd34984b2
commit
acda2d0be2
|
@ -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