Merge pull request #752 from Budibase/auto-links-fix

use pageName variable when no pagename defined
This commit is contained in:
Martin McKeaveney 2020-10-19 09:39:52 +01:00 committed by GitHub
commit 04cf10ffdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,