diff --git a/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte b/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte index 4291738d3d..323d484fab 100644 --- a/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte +++ b/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte @@ -6,9 +6,13 @@ import EditViewPopover from "./popovers/EditViewPopover.svelte" import NavItem from "components/common/NavItem.svelte" + const alphabetical = (a, b) => a.name?.toLowerCase() > b.name?.toLowerCase() + export let sourceId + $: selectedView = $views.selected && $views.selected.name + $: sortedTables = $tables.list.filter(table => table.sourceId === sourceId).sort(alphabetical) function selectTable(table) { tables.select(table) @@ -33,7 +37,7 @@ {#if $database?._id}
{table[column].name}
-Primary Key: {table[column].primary}
+{table.schema[column].name}
+{buildRelationshipDisplayString(table, table.schema[column])}
+→