remove initial screen creation
This commit is contained in:
parent
591d0bb7d8
commit
0c60a56a3a
|
@ -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