From eac057a3264fbf0c7383a88db6d7250622724f2b Mon Sep 17 00:00:00 2001 From: Vukasin Date: Fri, 25 Jul 2025 22:14:55 +0200 Subject: [PATCH] fix: clean up --- .../projects/[projectId]/thread/[threadId]/page.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/(dashboard)/projects/[projectId]/thread/[threadId]/page.tsx b/frontend/src/app/(dashboard)/projects/[projectId]/thread/[threadId]/page.tsx index c278adcf..c2fa6e4b 100644 --- a/frontend/src/app/(dashboard)/projects/[projectId]/thread/[threadId]/page.tsx +++ b/frontend/src/app/(dashboard)/projects/[projectId]/thread/[threadId]/page.tsx @@ -535,15 +535,9 @@ export default function ThreadPage({ }, [streamingToolCall, handleStreamingToolCall]); useEffect(() => { - if (isSidePanelOpen) { - setIsSidePanelAnimating(true); - const timer = setTimeout(() => setIsSidePanelAnimating(false), 200); // Match transition duration - return () => clearTimeout(timer); - } else { - setIsSidePanelAnimating(true); - const timer = setTimeout(() => setIsSidePanelAnimating(false), 200); // Match transition duration - return () => clearTimeout(timer); - } + setIsSidePanelAnimating(true); + const timer = setTimeout(() => setIsSidePanelAnimating(false), 200); // Match transition duration + return () => clearTimeout(timer); }, [isSidePanelOpen]); if (!initialLoadCompleted || isLoading) {