From 3bcd93d49087c187ec804d7233c659f06cb8c6f6 Mon Sep 17 00:00:00 2001 From: Conor_Mack Date: Mon, 15 Jun 2020 16:02:11 +0100 Subject: [PATCH] Lint fixes --- .../src/components/userInterface/pagesParsing/renameScreen.js | 3 ++- packages/builder/tests/testData.js | 2 +- packages/server/src/utilities/builder/index.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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