Review comments.
This commit is contained in:
parent
60f86184de
commit
6de3739318
|
@ -98,12 +98,16 @@
|
||||||
return errors
|
return errors
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let fromPrimary
|
||||||
|
$: {
|
||||||
|
if (!fromPrimary && fromTable) {
|
||||||
|
fromPrimary = fromTable.primary[0]
|
||||||
|
}
|
||||||
|
}
|
||||||
$: isManyToMany =
|
$: isManyToMany =
|
||||||
fromRelationship?.relationshipType === RelationshipTypes.MANY_TO_MANY
|
fromRelationship?.relationshipType === RelationshipTypes.MANY_TO_MANY
|
||||||
$: isManyToOne =
|
$: isManyToOne =
|
||||||
fromRelationship?.relationshipType === RelationshipTypes.MANY_TO_ONE
|
fromRelationship?.relationshipType === RelationshipTypes.MANY_TO_ONE
|
||||||
$: fromPrimary =
|
|
||||||
!fromPrimary && fromTable ? fromTable.primary[0] : fromPrimary
|
|
||||||
$: tableOptions = plusTables.map(table => ({
|
$: tableOptions = plusTables.map(table => ({
|
||||||
label: table.name,
|
label: table.name,
|
||||||
value: table._id,
|
value: table._id,
|
||||||
|
|
Loading…
Reference in New Issue