From 1df16e880c9c7f7df9edbcf001413cc1cfd76f84 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Thu, 20 Feb 2020 17:08:51 +0000 Subject: [PATCH] create props - ensure _styles always exist --- .../builder/src/userInterface/pagesParsing/createProps.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/builder/src/userInterface/pagesParsing/createProps.js b/packages/builder/src/userInterface/pagesParsing/createProps.js index 407deb57ff..42e1fd37e4 100644 --- a/packages/builder/src/userInterface/pagesParsing/createProps.js +++ b/packages/builder/src/userInterface/pagesParsing/createProps.js @@ -77,6 +77,10 @@ export const makePropsSafe = (componentDefinition, props) => { } } + if (!props._styles) { + props._styles = { layout: {}, position: {} } + } + return props }