fix: show read-only detail view after vendor creation instead of staying in edit mode
This commit is contained in:
@@ -52,6 +52,8 @@ export default function LieferantDetail() {
|
|||||||
if (isNew) {
|
if (isNew) {
|
||||||
setEditMode(true);
|
setEditMode(true);
|
||||||
setForm({ ...emptyForm });
|
setForm({ ...emptyForm });
|
||||||
|
} else {
|
||||||
|
setEditMode(false);
|
||||||
}
|
}
|
||||||
}, [isNew]);
|
}, [isNew]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user