Fix for relationship save button being enabled when table was missing
This commit is contained in:
parent
f6b229e7eb
commit
827508816e
|
@ -88,8 +88,12 @@
|
|||
hasValidated = false
|
||||
})
|
||||
}
|
||||
|
||||
$: valid =
|
||||
getErrorCount(errors) === 0 && allRequiredAttributesSet(relationshipType)
|
||||
getErrorCount(errors) === 0 &&
|
||||
allRequiredAttributesSet(relationshipType) &&
|
||||
fromId &&
|
||||
toId
|
||||
$: isManyToMany = relationshipType === RelationshipType.MANY_TO_MANY
|
||||
$: isManyToOne =
|
||||
relationshipType === RelationshipType.MANY_TO_ONE ||
|
||||
|
|
Loading…
Reference in New Issue