From bf384697d36ef348cb307d2af574fef1fc46af24 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 25 Feb 2021 11:05:46 +0000 Subject: [PATCH] Add support for new relationship object in backend table --- .../components/backend/DataTable/cells/RelationshipCell.svelte | 2 +- .../{RelationshipCount.svelte => RelationshipLabel.svelte} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename packages/standard-components/src/grid/Relationship/{RelationshipCount.svelte => RelationshipLabel.svelte} (91%) diff --git a/packages/builder/src/components/backend/DataTable/cells/RelationshipCell.svelte b/packages/builder/src/components/backend/DataTable/cells/RelationshipCell.svelte index 2d85a184d9..0aae16f3db 100644 --- a/packages/builder/src/components/backend/DataTable/cells/RelationshipCell.svelte +++ b/packages/builder/src/components/backend/DataTable/cells/RelationshipCell.svelte @@ -11,7 +11,7 @@ class:link={!!items.length} on:click={() => selectRelationship(row, columnName)}> {#each items as item} -
{item}
+
{item?.primaryDisplay ?? ''}
{/each} diff --git a/packages/standard-components/src/grid/Relationship/RelationshipCount.svelte b/packages/standard-components/src/grid/Relationship/RelationshipLabel.svelte similarity index 91% rename from packages/standard-components/src/grid/Relationship/RelationshipCount.svelte rename to packages/standard-components/src/grid/Relationship/RelationshipLabel.svelte index 6a96a0b90b..550dedc419 100644 --- a/packages/standard-components/src/grid/Relationship/RelationshipCount.svelte +++ b/packages/standard-components/src/grid/Relationship/RelationshipLabel.svelte @@ -7,7 +7,7 @@
{#each items as item} -
{item}
+
{item?.primaryDisplay}
{/each}