1
0
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:
Fredrik Strand Oseberg 2022-02-03 14:29:15 +01:00 committed by GitHub
parent 899a0f330e
commit c5c0f066de

View File

@ -53,7 +53,7 @@ function AddUserComponent({ roles, addUserToRole }) {
const handleSelectUser = (evt, selectedUser) => {
setOptions([]);
if(selectedUser.id) {
if (selectedUser?.id) {
setUser(selectedUser);
}
};