UI: Fix widget config validation in basic mode
This commit is contained in:
parent
d30ed1243c
commit
1aa2877634
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user