use pageName variable when no pagename defined
This commit is contained in:
parent
d0d9c33c46
commit
3a1094b902
|
@ -38,7 +38,7 @@ export const saveCurrentPreviewItem = s =>
|
||||||
export const savePage = async s => {
|
export const savePage = async s => {
|
||||||
const pageName = s.currentPageName || "main"
|
const pageName = s.currentPageName || "main"
|
||||||
const page = s.pages[pageName]
|
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 },
|
page: { componentLibraries: s.pages.componentLibraries, ...page },
|
||||||
uiFunctions: s.currentPageFunctions,
|
uiFunctions: s.currentPageFunctions,
|
||||||
screens: page._screens,
|
screens: page._screens,
|
||||||
|
|
Loading…
Reference in New Issue