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 bedcde20f6
commit 5f94892b3d
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,
}