mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 13:36:52 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
76473fa0df
commit
1af3fa23d6
1 changed files with 6 additions and 1 deletions
|
|
@ -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" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue