From 223d03b5f8ab1472f3f521cb47c71705aff6f294 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 23 Feb 2021 17:13:46 +0000 Subject: [PATCH] removing use of optional chaining and just checking for status. --- .../builder/src/components/backend/DataTable/Table.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/Table.svelte b/packages/builder/src/components/backend/DataTable/Table.svelte index 5ed2d120da..459b1c0d59 100644 --- a/packages/builder/src/components/backend/DataTable/Table.svelte +++ b/packages/builder/src/components/backend/DataTable/Table.svelte @@ -51,9 +51,11 @@ $: 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" + if (schema.status) { + schema.status.displayFieldName = "Status" + } } }