1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00

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

View file

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