Merge pull request #1565 from Budibase/fix/users-table

Fixes issue where earlier imported apps might break because certain fields do not exist
This commit is contained in:
Kevin Åberg Kultalahti 2021-05-26 15:47:19 +02:00 committed by GitHub
commit 2110fd0e09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 4 deletions

View File

@ -45,10 +45,18 @@
schema[field].editable = false
}
})
schema.email.displayName = "Email"
schema.roleId.displayName = "Role"
schema.firstName.displayName = "First Name"
schema.lastName.displayName = "Last Name"
if (schema.email) {
schema.email.displayName = "Email"
}
if (schema.roleId) {
schema.roleId.displayName = "Role"
}
if (schema.firstName) {
schema.firstName.displayName = "First Name"
}
if (schema.lastName) {
schema.lastName.displayName = "Last Name"
}
if (schema.status) {
schema.status.displayName = "Status"
}