Fix initial setup
This commit is contained in:
parent
6505f518c8
commit
3cb653eb01
|
@ -370,6 +370,16 @@
|
||||||
fromColumn = selectedFromTable.name
|
fromColumn = selectedFromTable.name
|
||||||
fromPrimary = selectedFromTable?.primary[0] || null
|
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
|
||||||
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue