web/admin: don't use form.reset() for ModelForms, reset instance

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-07-03 18:26:50 +02:00
parent 2c9b596f01
commit 6a4ddcaba7

View file

@ -39,7 +39,7 @@ export abstract class ModelForm<T, PKT extends string | number> extends Form<T>
}
resetForm(): void {
super.resetForm();
this.instance = undefined;
this._initialLoad = false;
}