From ebe8a562f6f110eef49452c84c5af1b1bf82ef3c Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Fri, 29 Sep 2023 11:56:50 +0100 Subject: [PATCH] fix relationship direction issue --- .../backend/DataTable/modals/CreateEditColumn.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index 5f1c8044d9..1c64dfe5ec 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -85,7 +85,7 @@ } let relationshipMap = { - [RelationshipType.MANY_TO_ONE]: { + [RelationshipType.ONE_TO_MANY]: { part1: PrettyRelationshipDefinitions.MANY, part2: PrettyRelationshipDefinitions.ONE, }, @@ -93,7 +93,7 @@ part1: PrettyRelationshipDefinitions.MANY, part2: PrettyRelationshipDefinitions.MANY, }, - [RelationshipType.ONE_TO_MANY]: { + [RelationshipType.MANY_TO_ONE]: { part1: PrettyRelationshipDefinitions.ONE, part2: PrettyRelationshipDefinitions.MANY, },