fix: show read-only detail view after vendor creation instead of staying in edit mode

This commit is contained in:
Matthias Hochmeister
2026-03-27 17:38:23 +01:00
parent 82c386888f
commit b36e05d192

View File

@@ -52,6 +52,8 @@ export default function LieferantDetail() {
if (isNew) {
setEditMode(true);
setForm({ ...emptyForm });
} else {
setEditMode(false);
}
}, [isNew]);