diff --git a/ui-ngx/src/app/modules/home/models/dashboard-component.models.ts b/ui-ngx/src/app/modules/home/models/dashboard-component.models.ts index cb9bd0b6f0..b218504ad1 100644 --- a/ui-ngx/src/app/modules/home/models/dashboard-component.models.ts +++ b/ui-ngx/src/app/modules/home/models/dashboard-component.models.ts @@ -488,9 +488,8 @@ export class DashboardWidget implements GridsterItem, IDashboardWidget { padding: this.padding, margin: this.margin, borderRadius: this.borderRadius }; - if (this.widget.config.widgetStyle && !isEmpty(this.widget.config.widgetStyle)) { - const convertedStyle = convertKeysToCamelCase(this.widget.config.widgetStyle); - this.style = {...this.style, ...convertedStyle}; + if (!isEmpty(this.widget.config.widgetStyle)) { + this.style = {...this.style, ...convertKeysToCamelCase(this.widget.config.widgetStyle)}; } this.showWidgetTitlePanel = this.widgetContext.hideTitlePanel ? false :