Browse Source
Merge pull request #1565 from Budibase/fix/users-table
Fixes issue where earlier imported apps might break because certain fields do not exist
gh-pages
Kevin Åberg Kultalahti
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
12 additions and
4 deletions
-
packages/builder/src/components/backend/DataTable/Table.svelte
|
|
@ -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" |
|
|
} |
|
|
} |
|
|
|