Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue: where relationshipName doesn't exist on a resources Relationships getRelationships should still return #37

Merged

Conversation

TheGuth
Copy link
Contributor

@TheGuth TheGuth commented Dec 14, 2017

Updated getRelationship function to return null when relationshipName is not included within relationships

Updated getRelationship function to return null when relationshipName is not included within relationships

const { data } = entity.relationships[relationshipName];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where an exception was being raised, when relationshipName did not exist on relationships

@stefanoverna stefanoverna merged commit dc39a3f into cantierecreativo:master Feb 8, 2018
@stefanoverna
Copy link
Contributor

Thanks @TheGuth !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants