remove initial screen creation
This commit is contained in:
parent
ee9b1a7c18
commit
fd61b191ec
|
@ -15,14 +15,12 @@ const {
|
||||||
generateAppID,
|
generateAppID,
|
||||||
getLayoutParams,
|
getLayoutParams,
|
||||||
getScreenParams,
|
getScreenParams,
|
||||||
generateScreenID,
|
|
||||||
generateDevAppID,
|
generateDevAppID,
|
||||||
DocumentTypes,
|
DocumentTypes,
|
||||||
AppStatus,
|
AppStatus,
|
||||||
} = require("../../db/utils")
|
} = require("../../db/utils")
|
||||||
const { BUILTIN_ROLE_IDS, AccessController } = require("@budibase/auth/roles")
|
const { BUILTIN_ROLE_IDS, AccessController } = require("@budibase/auth/roles")
|
||||||
const { BASE_LAYOUTS } = require("../../constants/layouts")
|
const { BASE_LAYOUTS } = require("../../constants/layouts")
|
||||||
const { createHomeScreen } = require("../../constants/screens")
|
|
||||||
const { cloneDeep } = require("lodash/fp")
|
const { cloneDeep } = require("lodash/fp")
|
||||||
const { processObject } = require("@budibase/string-templates")
|
const { processObject } = require("@budibase/string-templates")
|
||||||
const {
|
const {
|
||||||
|
@ -409,9 +407,5 @@ const createEmptyAppPackage = async (ctx, app) => {
|
||||||
screensAndLayouts.push(await processObject(cloned, app))
|
screensAndLayouts.push(await processObject(cloned, app))
|
||||||
}
|
}
|
||||||
|
|
||||||
const homeScreen = createHomeScreen(app)
|
|
||||||
homeScreen._id = generateScreenID()
|
|
||||||
screensAndLayouts.push(homeScreen)
|
|
||||||
|
|
||||||
await db.bulkDocs(screensAndLayouts)
|
await db.bulkDocs(screensAndLayouts)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue