Skip to content

Commit eecf6a0

Browse files
committed
NOWAGE-9162
- added null check when creating a empty dashboard header
1 parent cad0b89 commit eecf6a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/documentExecution/dashboard/widget/WidgetEditor/helpers/WidgetEditorHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function createNewWidget(type: string, dashboardModel: any) {
4040
addWidgetMenuConfig(widget)
4141
widget.settings.configuration.updateFromSelections = true
4242

43-
if (store.isEnterprise && !widget.settings.style.themeId) widget.settings.style.themeId = dashboardModel.configuration.theme?.id ?? null
43+
if (store.isEnterprise && !widget.settings.style.themeId) widget.settings.style.themeId = dashboardModel?.configuration?.theme?.id ?? null
4444

4545
return widget
4646
}

0 commit comments

Comments
 (0)