removing use of optional chaining and just checking for status.

This commit is contained in:
mike12345567 2021-02-23 17:13:46 +00:00
parent 97f8a5fd1e
commit 223d03b5f8
1 changed files with 5 additions and 3 deletions

View File

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