From 13cb66586680901ede831f59eff55e9950b62c3e Mon Sep 17 00:00:00 2001 From: Anastasiia Solop <35258279+anastasiya1155@users.noreply.github.com> Date: Thu, 17 Jul 2025 11:36:06 +0200 Subject: [PATCH] Small fix: close task panel if task was deleted (#235) * close task panel if task was deleted * update URL --- frontend/src/pages/project-tasks.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/pages/project-tasks.tsx b/frontend/src/pages/project-tasks.tsx index a7c3063a..71d862a2 100644 --- a/frontend/src/pages/project-tasks.tsx +++ b/frontend/src/pages/project-tasks.tsx @@ -343,6 +343,11 @@ export function ProjectTasks() { return task; }); setIsPanelOpen(true); + } else { + // Close panel when no task is found in array (after delete) + setIsPanelOpen(false); + setSelectedTask(null); + navigate(`/projects/${projectId}/tasks`, { replace: true }); } } else { // Close panel when no taskId in URL