Small fix: close task panel if task was deleted (#235)

* close task panel if task was deleted

* update URL
This commit is contained in:
Anastasiia Solop
2025-07-17 11:36:06 +02:00
committed by GitHub
parent ea77edcda2
commit 13cb665866

View File

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