web/elements: fix error when resetting a proxyform

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-31 22:34:48 +02:00
parent a7d9857a69
commit 884c91062d
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export class ProxyForm extends Form<unknown> {
}
reset(): void {
(this.shadowRoot?.firstElementChild as Form<unknown>).reset();
(this.shadowRoot?.firstElementChild as Form<unknown> | undefined)?.reset();
}
getSuccessMessage(): string {