Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot] 2026-04-23 21:35:42 +00:00
parent 76473fa0df
commit 1af3fa23d6

View file

@ -232,7 +232,12 @@ function AgentDetailPage() {
} }
}, [roleLoading, isAdmin, navigate]); }, [roleLoading, isAdmin, navigate]);
if (authLoading || roleLoading || agentLoading) { console.log("[admin.agente] render", {
id, authLoading, roleLoading, agentLoading,
isAdmin, hasUser: !!user, hasAgent: !!agent, agentError,
});
if (authLoading || roleLoading) {
return ( return (
<div className="min-h-screen flex items-center justify-center bg-background"> <div className="min-h-screen flex items-center justify-center bg-background">
<Loader2 className="h-6 w-6 animate-spin text-primary" /> <Loader2 className="h-6 w-6 animate-spin text-primary" />