fix(projects): rediriger vers le projet après édition

This commit is contained in:
thibaud-leclere 2026-04-14 15:38:34 +02:00
parent 761f6f42a5
commit 54fdfc7053

View file

@ -45,7 +45,7 @@ export default function ProjectForm() {
if (isEditing && projectId) {
await updateProject(projectId, name, baseBranch);
window.dispatchEvent(new Event("orchai:refresh-projects"));
navigate("/");
navigate(`/projects/${projectId}`);
} else {
const project = await createProject(name, pathOrUrl, baseBranch);
window.dispatchEvent(new Event("orchai:refresh-projects"));