fix invalid can be null and then gives an error

This commit is contained in:
ralf 2022-03-01 16:52:50 +02:00
parent 36e3bd5de0
commit c70886f106

View File

@ -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);