fix: data shown on column for related table.

This commit is contained in:
Darshan committed 2025-05-28 19:32:54 +05:30
1 parent f95ed47104
commit 084b2c3dd0
1 file changed
+1 -1
@@ -199,7 +199,7 @@
{@const attr = $attributes.find((n) => n.key === id)}
<Table.Cell column={id} {root}>
{#if isRelationship(attr)}
{@const args = displayNames?.[attr.relatedCollection] ?? ['$id']}
{@const args = displayNames?.[attr.relatedCollection] ?? ['name']}
{#if !isRelationshipToMany(attr)}
{#if document[id]}
{@const related = document[id]}