From c5c0f066de380a7e12dc5aba15f4db230866e315 Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Thu, 3 Feb 2022 14:29:15 +0100 Subject: [PATCH] fix: add tsx and nullish coalescence (#667) --- .../project/{access-add-user.js => access-add-user.tsx} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename frontend/src/component/project/{access-add-user.js => access-add-user.tsx} (99%) 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); } };