fix(frontend): agent loading condition update logic (#11673)

This commit is contained in:
sp.wack 2025-11-07 22:04:27 +04:00 committed by GitHub
parent a660321d55
commit 0c927b19d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 (