diff --git a/packages/builder/src/components/backend/Datasources/CreateEditRelationship.svelte b/packages/builder/src/components/backend/Datasources/CreateEditRelationship.svelte index 8a0bcce91e..7e11c98768 100644 --- a/packages/builder/src/components/backend/Datasources/CreateEditRelationship.svelte +++ b/packages/builder/src/components/backend/Datasources/CreateEditRelationship.svelte @@ -370,6 +370,16 @@ fromColumn = selectedFromTable.name fromPrimary = selectedFromTable?.primary[0] || null } + if (relationshipType === RelationshipType.MANY_TO_MANY) { + relationshipPart1 = PrettyRelationshipDefinitions.MANY + relationshipPart2 = PrettyRelationshipDefinitions.MANY + } else if (relationshipType === RelationshipType.MANY_TO_ONE) { + relationshipPart1 = PrettyRelationshipDefinitions.ONE + relationshipPart2 = PrettyRelationshipDefinitions.MANY + } else { + relationshipPart1 = PrettyRelationshipDefinitions.MANY + relationshipPart2 = PrettyRelationshipDefinitions.ONE + } })