diff --git a/frontend/src/component/project/access-add-user.js b/frontend/src/component/project/access-add-user.tsx similarity index 99% rename from frontend/src/component/project/access-add-user.js rename to frontend/src/component/project/access-add-user.tsx index 917a8d55d8..e5029160c9 100644 --- a/frontend/src/component/project/access-add-user.js +++ b/frontend/src/component/project/access-add-user.tsx @@ -53,7 +53,7 @@ function AddUserComponent({ roles, addUserToRole }) { const handleSelectUser = (evt, selectedUser) => { setOptions([]); - if(selectedUser.id) { + if (selectedUser?.id) { setUser(selectedUser); } };