From 43a89ee1ccbeeac11211277f8005d85541c71dc3 Mon Sep 17 00:00:00 2001 From: Faton Ramadani Date: Mon, 5 Aug 2024 11:06:42 +0200 Subject: [PATCH] fix(frontend): fix style panel for compoentn without custom css (#4182) --- frontend/src/lib/components/apps/editor/appUtils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/apps/editor/appUtils.ts b/frontend/src/lib/components/apps/editor/appUtils.ts index e9330b5ae0..a18d5a7eca 100644 --- a/frontend/src/lib/components/apps/editor/appUtils.ts +++ b/frontend/src/lib/components/apps/editor/appUtils.ts @@ -366,7 +366,10 @@ export function appComponentFromType( tabs: init.tabs, conditions: init.conditions, nodes: init.nodes, - customCss: deepMergeWithPriority(ccomponents[type].customCss as any, override?.customCss), + customCss: deepMergeWithPriority( + ccomponents[type].customCss as any, + override?.customCss ?? {} + ), recomputeIds: init.recomputeIds ? [] : undefined, actionButtons: init.actionButtons ? [] : undefined, actions: [],