UI: Fix widget config validation in basic mode

This commit is contained in:
Igor Kulikov 2023-05-30 13:47:52 +03:00
parent d30ed1243c
commit 1aa2877634

View File

@ -869,13 +869,14 @@ export class WidgetConfigComponent extends PageComponent implements OnInit, OnDe
}
public validate(c: UntypedFormControl) {
if (this.basicModeComponent &&
!this.basicModeComponent.validateConfig()) {
return {
basicWidgetConfig: {
valid: false
}
};
if (this.basicModeComponent) {
if (!this.basicModeComponent.validateConfig()) {
return {
basicWidgetConfig: {
valid: false
}
};
}
} else if (!this.dataSettings.valid) {
return {
dataSettings: {