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

View file

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