From 884c91062d03e669509c0c7d6308f8b3aeb9cb78 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 31 Mar 2021 22:34:48 +0200 Subject: [PATCH] web/elements: fix error when resetting a proxyform Signed-off-by: Jens Langhammer --- web/src/elements/forms/ProxyForm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/elements/forms/ProxyForm.ts b/web/src/elements/forms/ProxyForm.ts index f571b7637..5784fb58d 100644 --- a/web/src/elements/forms/ProxyForm.ts +++ b/web/src/elements/forms/ProxyForm.ts @@ -18,7 +18,7 @@ export class ProxyForm extends Form { } reset(): void { - (this.shadowRoot?.firstElementChild as Form).reset(); + (this.shadowRoot?.firstElementChild as Form | undefined)?.reset(); } getSuccessMessage(): string {