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

View file

@ -91,11 +91,12 @@ function AgentDetailPage() {
},
});
const { data: agent, isLoading: agentLoading } = useQuery({
const { data: agent, isLoading: agentLoading, error: agentError } = useQuery({
queryKey: ["agent-detail", id],
enabled: !!isAdmin,
refetchInterval: 10_000,
queryFn: async () => {
console.log("[admin.agente] fetching agent detail", { id });
const { data, error } = await supabase
.from("agent_instances")
.select(