Ensure user table editing is still allowed for old apps that are imported

This commit is contained in:
Andrew Kingston 2023-10-09 15:09:11 +01:00
parent 73e208292f
commit b17ec630c1
1 changed files with 4 additions and 1 deletions

View File

@ -311,10 +311,13 @@ async function performAppCreate(ctx: UserCtx) {
}
})
// Keep existing validation setting
// Keep existing feature flags
if (!existing.features?.componentValidation) {
newApplication.features!.componentValidation = false
}
if (!existing.features?.disableUserMetadata) {
newApplication.features!.disableUserMetadata = false
}
// Migrate navigation settings and screens if required
if (existing) {