From fad9337af9b1a4f96a1c890d8ca67fd82718fc86 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Wed, 4 Mar 2020 12:43:02 +0000 Subject: [PATCH] bugfix: css not applied after template component added --- packages/builder/src/builderStore/store.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/builder/src/builderStore/store.js b/packages/builder/src/builderStore/store.js index 26173f915d..1653cdb6dd 100644 --- a/packages/builder/src/builderStore/store.js +++ b/packages/builder/src/builderStore/store.js @@ -827,6 +827,7 @@ const addTemplatedComponent = store => props => { state.currentComponentInfo._children = state.currentComponentInfo._children.concat( props ) + state.currentPreviewItem._css = generate_screen_css([state.currentPreviewItem.props]) _saveCurrentPreviewItem(state)