From c70886f106d58033b90c7ccf3f376e24f91fda37 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 1 Mar 2022 16:52:50 +0200 Subject: [PATCH] fix invalid can be null and then gives an error --- api/js/etemplate/etemplate2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/etemplate2.ts b/api/js/etemplate/etemplate2.ts index 98d9264c90..70e495bd73 100644 --- a/api/js/etemplate/etemplate2.ts +++ b/api/js/etemplate/etemplate2.ts @@ -970,7 +970,7 @@ export class etemplate2 { canSubmit = !(invalid = this.isInvalid(container, values)); } - invalid.then((widgets) => + invalid?.then((widgets) => { let invalid_widgets = widgets.filter((widget) => widget);