1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

Only create default home screen and layouts when not importing an app

This commit is contained in:
Andrew Kingston 2021-09-22 14:50:52 +01:00
parent 216a7c7a3f
commit 22e75b8154

View file

@ -230,7 +230,12 @@ exports.create = async function (ctx) {
const response = await db.put(newApplication, { force: true }) const response = await db.put(newApplication, { force: true })
newApplication._rev = response.rev newApplication._rev = response.rev
await createEmptyAppPackage(ctx, newApplication) // Only create the default home screens and layout if we aren't importing
// an app
if (!useTemplate) {
await createEmptyAppPackage(ctx, newApplication)
}
/* istanbul ignore next */ /* istanbul ignore next */
if (!env.isTest()) { if (!env.isTest()) {
await createApp(appId) await createApp(appId)