create props - ensure _styles always exist

This commit is contained in:
Michael Shanks 2020-02-20 17:08:51 +00:00
parent 21461645cc
commit 5f7511e3fd
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
} }