mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-11 07:26:39 +00:00
fix redirect bug for some accounts when disable create org is enabled
This commit is contained in:
@@ -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") }),
|
||||
|
||||
Reference in New Issue
Block a user