From db17ff332307e6c80d034e6c13932d4bc253bca3 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 12 Mar 2026 12:40:08 -0700 Subject: [PATCH] fix syntax errors from bad merge --- apps/web/src/components/PlanSidebar.tsx | 17 +++++++++-------- apps/web/src/wsTransport.ts | 1 + 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/web/src/components/PlanSidebar.tsx b/apps/web/src/components/PlanSidebar.tsx index 2d898b009e384d8a392d79d76320a373131d9822..735900eacbdc3c51ffb2c93c5a65c8ca1a1e043b 100644 --- a/apps/web/src/components/PlanSidebar.tsx +++ b/apps/web/src/components/PlanSidebar.tsx @@ -86,6 +86,15 @@ const PlanSidebar = memo(function PlanSidebar({ }, 2000); }, [planMarkdown]); + // Cleanup timeout on unmount + useEffect(() => { + return () => { + if (copiedTimerRef.current != null) { + clearTimeout(copiedTimerRef.current); + } + }; + }, []); + const handleDownload = useCallback(() => { if (!planMarkdown) return; const filename = buildProposedPlanMarkdownFilename(planMarkdown); @@ -128,14 +137,6 @@ const PlanSidebar = memo(function PlanSidebar({ {/* Header */}
- // Cleanup timeout on unmount - useEffect(() => { - return () => { - if (copiedTimerRef.current \!= null) { - clearTimeout(copiedTimerRef.current); - } - }; - }, []);