diff --git a/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte b/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte
index 323d484fab..ac1d82bf67 100644
--- a/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte
+++ b/packages/builder/src/components/backend/TableNavigator/TableNavigator.svelte
@@ -10,9 +10,10 @@
export let sourceId
-
$: selectedView = $views.selected && $views.selected.name
- $: sortedTables = $tables.list.filter(table => table.sourceId === sourceId).sort(alphabetical)
+ $: sortedTables = $tables.list
+ .filter(table => table.sourceId === sourceId)
+ .sort(alphabetical)
function selectTable(table) {
tables.select(table)
diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/CreateEditRelationship/CreateEditRelationship.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/CreateEditRelationship/CreateEditRelationship.svelte
index d038304547..f15d7b22f1 100644
--- a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/CreateEditRelationship/CreateEditRelationship.svelte
+++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/CreateEditRelationship/CreateEditRelationship.svelte
@@ -1,25 +1,31 @@
{table.name}
Primary Key: {table.primary}
→
@@ -141,30 +201,35 @@ {/each}+ {buildRelationshipDisplayString( + relationship.from, + relationship.to + )} +
+{relationship.from?.name} to {relationship.to?.name}
+→
+{table.schema[column].name}
-{buildRelationshipDisplayString(table, table.schema[column])}
-→
-