From cfada8771c083354591f4f0ce689bcc5ca32be2c Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Mon, 13 Apr 2020 12:59:29 +0200 Subject: [PATCH] fixes store actions to use correct appname --- packages/builder/src/builderStore/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/builderStore/store/index.js b/packages/builder/src/builderStore/store/index.js index 0fc74ff553..cf4b785b21 100644 --- a/packages/builder/src/builderStore/store/index.js +++ b/packages/builder/src/builderStore/store/index.js @@ -364,7 +364,7 @@ const savePage = store => async page => { const addComponentLibrary = store => async lib => { const response = await api.get( - `/_builder/api/${appname}/componentlibrary?lib=${encodeURI(lib)}`, + `/_builder/api/${s.appname}/componentlibrary?lib=${encodeURI(lib)}`, undefined, false ) @@ -423,7 +423,7 @@ const removeStylesheet = store => stylesheet => { const _savePage = async s => { const page = s.pages[s.currentPageName] - await api.post(`/_builder/api/${appname}/pages/${s.currentPageName}`, { + await api.post(`/_builder/api/${s.appname}/pages/${s.currentPageName}`, { page: { componentLibraries: s.pages.componentLibraries, ...page }, uiFunctions: s.currentPageFunctions, screens: page._screens,