From 6a4ddcaba76bcfd7cdb58819bdcae9444af701e5 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 3 Jul 2021 18:26:50 +0200 Subject: [PATCH] web/admin: don't use form.reset() for ModelForms, reset instance Signed-off-by: Jens Langhammer --- web/src/elements/forms/ModelForm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/elements/forms/ModelForm.ts b/web/src/elements/forms/ModelForm.ts index 720904793..59d06dd38 100644 --- a/web/src/elements/forms/ModelForm.ts +++ b/web/src/elements/forms/ModelForm.ts @@ -39,7 +39,7 @@ export abstract class ModelForm extends Form } resetForm(): void { - super.resetForm(); + this.instance = undefined; this._initialLoad = false; }