From 1d5bdc59d910978cf602b6f967ac2c6699d251c7 Mon Sep 17 00:00:00 2001 From: MoulikaKulkarni Date: Thu, 21 Sep 2023 17:01:00 +0530 Subject: [PATCH] fix: default role selection makes the user invisible on the dashboard until the page is refreshed Signed-off-by: MoulikaKulkarni --- src/components/organization/users/EditUserRolesModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/organization/users/EditUserRolesModal.tsx b/src/components/organization/users/EditUserRolesModal.tsx index a7353557a..28997e5e4 100644 --- a/src/components/organization/users/EditUserRolesModal.tsx +++ b/src/components/organization/users/EditUserRolesModal.tsx @@ -23,7 +23,7 @@ const EditUserRoleModal = (props: { openModal: boolean; user: User; setMessage: const [erroMsg, setErrMsg] = useState(null) - const [shouldRender, setShouldRender] = useState(true); + const [shouldRender, setShouldRender] = useState(false); const getRoles = async () => { @@ -172,7 +172,7 @@ const EditUserRoleModal = (props: { openModal: boolean; user: User; setMessage: * - { shouldRender && ( + { !shouldRender && ( roles &&
{