frank06 / ember-data-save-relationships

A mixin for Ember Data JSON API serializers to save relationship data
https://github.com/laborvoices/ember-data-save-relationships
MIT License
41 stars 20 forks source link

null check 'data' object to correctly handle data: null objects #15

Closed josephroffey closed 8 years ago

josephroffey commented 8 years ago

Please merge in these null checks, which fix a bug for us when handling requests containing e.g.:

... "relationships": { "example-model": { "data": null } } ...

which is valid within JSON API

frank06 commented 8 years ago

Thank you!