From 38bcf5c0c289cfd257b9e81da9f59c5937968692 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Thu, 15 Oct 2020 19:13:48 +0100 Subject: [PATCH] generate css before saving screen --- packages/builder/src/builderStore/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/builderStore/store/index.js b/packages/builder/src/builderStore/store/index.js index bb61712f1a..f80ce48a81 100644 --- a/packages/builder/src/builderStore/store/index.js +++ b/packages/builder/src/builderStore/store/index.js @@ -161,8 +161,8 @@ const createScreen = store => async screen => { state.currentPreviewItem = screen state.currentComponentInfo = screen.props state.currentFrontEndType = "screen" - savePromise = _saveScreen(store, state, screen) regenerateCssForCurrentScreen(state) + savePromise = _saveScreen(store, state, screen) return state }) await savePromise