1
0
Fork 0
mirror of synced 2024-06-27 02:20:35 +12:00

Review comments.

This commit is contained in:
mike12345567 2021-11-24 13:15:44 +00:00
parent 60f86184de
commit 6de3739318

View file

@ -98,12 +98,16 @@
return errors
}
let fromPrimary
$: {
if (!fromPrimary && fromTable) {
fromPrimary = fromTable.primary[0]
}
}
$: isManyToMany =
fromRelationship?.relationshipType === RelationshipTypes.MANY_TO_MANY
$: isManyToOne =
fromRelationship?.relationshipType === RelationshipTypes.MANY_TO_ONE
$: fromPrimary =
!fromPrimary && fromTable ? fromTable.primary[0] : fromPrimary
$: tableOptions = plusTables.map(table => ({
label: table.name,
value: table._id,