Ensure block components have a proper style structure defined after ejection

This commit is contained in:
Andrew Kingston 2022-08-24 09:44:33 +01:00
parent f720c021e0
commit 8f8ffe2c1c
1 changed files with 4 additions and 1 deletions

View File

@ -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,
}