From e7e3c96495a4c474fd5408b034e12ce956ca1fc9 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Tue, 2 Jun 2020 13:29:02 +0300 Subject: [PATCH] Fix dashboard save --- .../modules/home/pages/dashboard/dashboard-form.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-form.component.ts b/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-form.component.ts index 7f19cfe571..5751c88341 100644 --- a/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-form.component.ts +++ b/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-form.component.ts @@ -95,6 +95,11 @@ export class DashboardFormComponent extends EntityComponent { this.entityForm.patchValue({configuration: {description: entity.configuration ? entity.configuration.description : ''}}); } + prepareFormValue(formValue: any): any { + formValue.configuration = {...(this.entity.configuration || {}), ...(formValue.configuration || {})}; + return formValue; + } + onPublicLinkCopied($event) { this.store.dispatch(new ActionNotificationShow( {