1
0
Fork 0
mirror of synced 2024-07-08 15:56:23 +12:00

Fix for relationship save button being enabled when table was missing

This commit is contained in:
Peter Clement 2024-01-25 12:14:55 +00:00
parent f6b229e7eb
commit 827508816e

View file

@ -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 ||