web: fix t.reset is not a function

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-05-19 23:37:23 +02:00
parent acf1ad91d9
commit 19371dad65
4 changed files with 4 additions and 7 deletions

View File

@ -23,7 +23,7 @@ export class ModalForm extends ModalButton {
return formPromise.then(() => {
if (this.closeAfterSuccessfulSubmit) {
this.open = false;
form.reset();
form?.reset();
}
this.dispatchEvent(
new CustomEvent(EVENT_REFRESH, {