From 16228b80282977103a8df6c7efa2bbdee2bdd496 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 23 Feb 2021 17:08:35 +0000 Subject: [PATCH] Fixing a minor issue, making sure only trying to add displayFieldColumn when the app has that column (older ones may not yet). --- .../builder/src/components/backend/DataTable/Table.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/Table.svelte b/packages/builder/src/components/backend/DataTable/Table.svelte index 1878e63b02..5ed2d120da 100644 --- a/packages/builder/src/components/backend/DataTable/Table.svelte +++ b/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" } }