Skip to content

Commit

Permalink
Only render the relationship in RelationshipRow when it's valid
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSputnik committed Dec 5, 2015
1 parent d3a9db3 commit 6bff3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/components/forms/relationship.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const RelationshipRow = React.createClass({
const relationshipType =
getRelationshipTypeById(this.props.relationshipTypes, rel.type);

if (!relationshipType) {
if (!this.valid()) {
return null;
}

Expand Down

0 comments on commit 6bff3b6

Please sign in to comment.