web/elements: fix error when resetting a proxyform
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user