mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
fix: add tsx and nullish coalescence (#667)
This commit is contained in:
parent
899a0f330e
commit
c5c0f066de
@ -53,7 +53,7 @@ function AddUserComponent({ roles, addUserToRole }) {
|
||||
|
||||
const handleSelectUser = (evt, selectedUser) => {
|
||||
setOptions([]);
|
||||
if(selectedUser.id) {
|
||||
if (selectedUser?.id) {
|
||||
setUser(selectedUser);
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user