diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes/relationship.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes/relationship.svelte
index 6a800c13e..8a5c60be9 100644
--- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes/relationship.svelte
+++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes/relationship.svelte
@@ -1,6 +1,6 @@
{#if isArray()}
-
-
-
-
Relation
+
+
+
-
-
-
- {#if addRelationship === false}
+ {#if relatedList.length === 0}
+
+ {/if}
+
+
+ {#each relatedList as doc, i}
+ -
+
+
+
+ {/each}
+ {#if showInput}
+ -
({
value: n.$id,
- label: n.name
+ label: n.$id
})) ?? []} />
- {/if}
- {#each attribute?.relationships as relationship}
-
-
-
-
-
- {/each}
-
-
-
-
Total results: {attribute?.relationships?.length}
-
-
-
-
+ {#if relatedList.length > 0 && !showInput}
+
+ {/if}
{:else}