UI: Refactoring

This commit is contained in:
Artem Dzhereleiko 2023-11-09 15:50:41 +02:00
parent d52f745909
commit 694f9a0dd4

View File

@ -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 :