From 69363670a7fbaf7c8f2345e0c0a9d1c5852b34f2 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 19 Oct 2020 09:28:04 +0100 Subject: [PATCH] use pageName variable when no pagename defined --- packages/builder/src/builderStore/storeUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/builderStore/storeUtils.js b/packages/builder/src/builderStore/storeUtils.js index d1db96a166..2c486a9bdb 100644 --- a/packages/builder/src/builderStore/storeUtils.js +++ b/packages/builder/src/builderStore/storeUtils.js @@ -38,7 +38,7 @@ export const saveCurrentPreviewItem = s => export const savePage = async s => { const pageName = s.currentPageName || "main" const page = s.pages[pageName] - await api.post(`/_builder/api/${s.appId}/pages/${s.currentPageName}`, { + await api.post(`/_builder/api/${s.appId}/pages/${pageName}`, { page: { componentLibraries: s.pages.componentLibraries, ...page }, uiFunctions: s.currentPageFunctions, screens: page._screens,