Lint fixes

This commit is contained in:
Conor_Mack 2020-06-15 16:02:11 +01:00
parent c1e9133424
commit 3bcd93d490
3 changed files with 4 additions and 3 deletions

View File

@ -50,7 +50,8 @@ export const rename = (pages, screens, oldname, newname) => {
hasEdited = traverseProps(screen.props) || hasEdited 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) { for (let pageName in pages) {

View File

@ -64,7 +64,7 @@ export const componentsAndScreens = () => ({
}, },
}, },
{ {
route: "", route: "",
props: { props: {
_component: "budibase-components/div", _component: "budibase-components/div",

View File

@ -42,7 +42,7 @@ const screenPath = (appPath, pageName, name) =>
module.exports.saveScreen = async (config, appname, pagename, screen) => { module.exports.saveScreen = async (config, appname, pagename, screen) => {
const appPath = appPackageFolder(config, appname) const appPath = appPackageFolder(config, appname)
const compPath = screenPath(appPath, pagename, screen.props._id) const compPath = screenPath(appPath, pagename, screen.props._id)
await ensureDir(dirname(compPath)) await ensureDir(dirname(compPath))
if (screen._css) { if (screen._css) {
delete screen._css delete screen._css