- t('componentsErrorNoMember') -
- ) : ( + !disableCreateOrg && ( ) diff --git a/src/components/SecurityKeyForm.tsx b/src/components/SecurityKeyForm.tsx index d4970947..e343fc5f 100644 --- a/src/components/SecurityKeyForm.tsx +++ b/src/components/SecurityKeyForm.tsx @@ -103,8 +103,10 @@ export default function SecurityKeyForm({ }); useEffect(() => { - loadSecurityKeys(); - }, []); + if (open) { + loadSecurityKeys(); + } + }, [open]); const registerSchema = z.object({ name: z.string().min(1, { message: t("securityKeyNameRequired") }),