create props - ensure _styles always exist

This commit is contained in:
Michael Shanks 2020-02-20 17:08:51 +00:00
parent c9191f408f
commit 1df16e880c
1 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,10 @@ export const makePropsSafe = (componentDefinition, props) => {
} }
} }
if (!props._styles) {
props._styles = { layout: {}, position: {} }
}
return props return props
} }