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:
commit
2110fd0e09
|
@ -45,10 +45,18 @@
|
||||||
schema[field].editable = false
|
schema[field].editable = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
schema.email.displayName = "Email"
|
if (schema.email) {
|
||||||
schema.roleId.displayName = "Role"
|
schema.email.displayName = "Email"
|
||||||
schema.firstName.displayName = "First Name"
|
}
|
||||||
schema.lastName.displayName = "Last Name"
|
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) {
|
if (schema.status) {
|
||||||
schema.status.displayName = "Status"
|
schema.status.displayName = "Status"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue