Merge pull request #13210 from Budibase/pc/bug-fixing

Fix issue with being able to select one to one relationship
This commit is contained in:
Peter Clement 2024-03-07 10:37:12 +00:00 committed by GitHub
commit 3734dce20c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 2 deletions

View File

@ -40,8 +40,15 @@
part2: PrettyRelationshipDefinitions.MANY, part2: PrettyRelationshipDefinitions.MANY,
}, },
} }
let relationshipOpts1 = Object.values(PrettyRelationshipDefinitions) $: relationshipOpts1 =
let relationshipOpts2 = Object.values(PrettyRelationshipDefinitions) relationshipPart2 === PrettyRelationshipDefinitions.ONE
? [PrettyRelationshipDefinitions.MANY]
: Object.values(PrettyRelationshipDefinitions)
$: relationshipOpts2 =
relationshipPart1 === PrettyRelationshipDefinitions.ONE
? [PrettyRelationshipDefinitions.MANY]
: Object.values(PrettyRelationshipDefinitions)
let relationshipPart1 = PrettyRelationshipDefinitions.ONE let relationshipPart1 = PrettyRelationshipDefinitions.ONE
let relationshipPart2 = PrettyRelationshipDefinitions.MANY let relationshipPart2 = PrettyRelationshipDefinitions.MANY