Browse Source

Fixing a minor issue, making sure only trying to add displayFieldColumn when the app has that column (older ones may not yet).

pull/4023/head
mike12345567 6 years ago
parent
commit
16228b8028
  1. 6
      packages/builder/src/components/backend/DataTable/Table.svelte

6
packages/builder/src/components/backend/DataTable/Table.svelte

@ -51,9 +51,9 @@
$: isUsersTable = tableId === TableNames.USERS
$: {
if (isUsersTable) {
schema.email.displayFieldName = "Email"
schema.roleId.displayFieldName = "Role"
schema.status.displayFieldName = "Status"
schema.email?.displayFieldName = "Email"
schema.roleId?.displayFieldName = "Role"
schema.status?.displayFieldName = "Status"
}
}

Loading…
Cancel
Save