Skip to content

Conversation

@DuncanFenning
Copy link
Contributor

This PR prevents relations trying to be created when a resource doesn't have any relations.

Currently if you try to create a resource that doesn't have any relationships, it will crash

Uncaught exception! TypeError: Object.keys called on non-object

  • This seems legit
  • This will work!

@pmcnr-hx
Copy link
Contributor

pmcnr-hx commented Feb 8, 2016

Look legit to me. It probably makes sense to add some unit test coverage for these function, but it's out of scope for now, since we're already using this fix successfully in the dependent projects, so let's get it merged and released: 👍 :shipit:

@theninj4
Copy link
Contributor

theninj4 commented Feb 8, 2016

👍

DuncanFenning added a commit that referenced this pull request Feb 8, 2016
@DuncanFenning DuncanFenning merged commit 53cc8a2 into master Feb 8, 2016
@DuncanFenning DuncanFenning deleted the resourcesWithoutRelations branch February 8, 2016 15:18
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.

4 participants