removing use of optional chaining and just checking for status.
This commit is contained in:
parent
16228b8028
commit
704728cc3b
|
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue