From 5d63115ef48dd6bcae1e526fac46ae1227f7b2c7 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Thu, 4 Jan 2024 15:06:44 +0200 Subject: [PATCH] UI: Fixed validation JSON form in custom widgets --- .../home/components/widget/config/widget-settings.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/config/widget-settings.component.ts b/ui-ngx/src/app/modules/home/components/widget/config/widget-settings.component.ts index 65480ec3b8..2e56a54f65 100644 --- a/ui-ngx/src/app/modules/home/components/widget/config/widget-settings.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/config/widget-settings.component.ts @@ -246,7 +246,7 @@ export class WidgetSettingsComponent implements ControlValueAccessor, OnInit, On }; } } else if (this.useJsonForm()) { - if (!this.widgetSettingsFormGroup.valid) { + if (!this.widgetSettingsFormGroup.get('settings').valid) { return { widgetSettings: { valid: false