fix(piece-edit) : stay on page after saving piece

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-03-16 16:12:15 +01:00
parent 974b74ee9f
commit 53530dc16d

View File

@@ -412,7 +412,7 @@ export function usePieceEdit(pieceId: string) {
],
{ customFieldInputs, upsertCustomFieldValue, updateCustomFieldValue, toast },
)
await router.push('/pieces-catalog')
toast.showSuccess('Pièce mise à jour avec succès.')
}
}
catch (error: any) {