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} +
  • + +
    + + {doc} + + + + + +
    +
    + +
  • + {/each} + {#if showInput} +
  • ({ value: n.$id, - label: n.name + label: n.$id })) ?? []} /> - {/if} - {#each attribute?.relationships as relationship} -
  • - -
    - - {realationship.label} - - - {#each relationship.data as info} - {info} - {/each} - -
    -
    - -
  • - {/each} -
- -
-

Total results: {attribute?.relationships?.length}

- - -
-
+ {#if relatedList.length > 0 && !showInput} + + {/if}
{:else}