diff --git a/packages/builder/src/components/userInterface/pagesParsing/renameScreen.js b/packages/builder/src/components/userInterface/pagesParsing/renameScreen.js index 1808ecffc4..72736446a1 100644 --- a/packages/builder/src/components/userInterface/pagesParsing/renameScreen.js +++ b/packages/builder/src/components/userInterface/pagesParsing/renameScreen.js @@ -50,7 +50,8 @@ export const rename = (pages, screens, oldname, newname) => { hasEdited = traverseProps(screen.props) || hasEdited - if (hasEdited && screen.props.instanceName !== newname) changedScreens.push(screen.props.instanceName) + if (hasEdited && screen.props.instanceName !== newname) + changedScreens.push(screen.props.instanceName) } for (let pageName in pages) { diff --git a/packages/builder/tests/testData.js b/packages/builder/tests/testData.js index 79cadb1b65..d2703ad335 100644 --- a/packages/builder/tests/testData.js +++ b/packages/builder/tests/testData.js @@ -64,7 +64,7 @@ export const componentsAndScreens = () => ({ }, }, - { + { route: "", props: { _component: "budibase-components/div", diff --git a/packages/server/src/utilities/builder/index.js b/packages/server/src/utilities/builder/index.js index 23b6167304..f63e34a8cd 100644 --- a/packages/server/src/utilities/builder/index.js +++ b/packages/server/src/utilities/builder/index.js @@ -42,7 +42,7 @@ const screenPath = (appPath, pageName, name) => module.exports.saveScreen = async (config, appname, pagename, screen) => { const appPath = appPackageFolder(config, appname) const compPath = screenPath(appPath, pagename, screen.props._id) - + await ensureDir(dirname(compPath)) if (screen._css) { delete screen._css