From 8f8ffe2c1cfd5a00b92eb8f606deb4aa9f1969bb Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 24 Aug 2022 09:44:33 +0100 Subject: [PATCH] Ensure block components have a proper style structure defined after ejection --- packages/client/src/components/BlockComponent.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/BlockComponent.svelte b/packages/client/src/components/BlockComponent.svelte index 95016c4847..2f756ce296 100644 --- a/packages/client/src/components/BlockComponent.svelte +++ b/packages/client/src/components/BlockComponent.svelte @@ -26,7 +26,10 @@ _component: `@budibase/standard-components/${type}`, _id: id, _instanceName: type[0].toUpperCase() + type.slice(1), - _styles: styles, + _styles: { + ...styles, + normal: styles?.normal || {}, + }, _containsSlot: containsSlot, ...props, }