From 0c927b19d25398f9949681fe75b6b0291fa94622 Mon Sep 17 00:00:00 2001 From: "sp.wack" <83104063+amanape@users.noreply.github.com> Date: Fri, 7 Nov 2025 22:04:27 +0400 Subject: [PATCH] fix(frontend): agent loading condition update logic (#11673) --- frontend/src/components/features/controls/agent-status.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/components/features/controls/agent-status.tsx b/frontend/src/components/features/controls/agent-status.tsx index 68165ddf97..2fbff7192f 100644 --- a/frontend/src/components/features/controls/agent-status.tsx +++ b/frontend/src/components/features/controls/agent-status.tsx @@ -70,8 +70,7 @@ export function AgentStatus({ // Update global state when agent loading condition changes useEffect(() => { - if (shouldShownAgentLoading) - setShouldShownAgentLoading(shouldShownAgentLoading); + setShouldShownAgentLoading(!!shouldShownAgentLoading); }, [shouldShownAgentLoading, setShouldShownAgentLoading]); return (