fix(creation) : redirect to edit page after creating composant, piece, or product

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-03-23 12:26:18 +01:00
parent 40d0753637
commit a730a18794
3 changed files with 3 additions and 3 deletions

View File

@@ -466,7 +466,7 @@ const submitCreation = async () => {
selectedDocuments.value = []
}
toast.showSuccess('Pièce créée avec succès')
await router.push('/pieces-catalog')
await router.push(`/pieces/${createdPiece.id}/edit`)
} else if (result.error) {
toast.showError(result.error)
}