From ea7cb76059453d1af9f0604c2658550a690431bd Mon Sep 17 00:00:00 2001 From: Louis Knight-Webb Date: Tue, 15 Jul 2025 23:49:23 +0100 Subject: [PATCH] Fixed! The issue was in the [`useEffect`](file:///private/var/folders/kr/jdxkcn7129j376nrg0stj9zm0000gn/T/vibe-kanban/vk-db4e-the-close/frontend/src/pages/project-tasks.tsx#L91-L106) that handles URL changes. It only opened the panel when a `taskId` was present but didn't close it when the `taskId` was removed from the URL. (#203) The fix adds an `else` condition that closes the panel (`setIsPanelOpen(false)`) and clears the selected task (`setSelectedTask(null)`) when there's no `taskId` in the URL. --- frontend/src/pages/project-tasks.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/pages/project-tasks.tsx b/frontend/src/pages/project-tasks.tsx index 564c08d9..ad3d5cdd 100644 --- a/frontend/src/pages/project-tasks.tsx +++ b/frontend/src/pages/project-tasks.tsx @@ -98,6 +98,10 @@ export function ProjectTasks() { }); setIsPanelOpen(true); } + } else { + // Close panel when no taskId in URL + setIsPanelOpen(false); + setSelectedTask(null); } }, [taskId, tasks]);