-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[BUGFIX release] handle case where linked relationship data is null #3452
Conversation
@@ -25,7 +25,7 @@ export default JSONSerializer.extend({ | |||
|
|||
if (Ember.typeOf(documentHash.data) === 'object') { | |||
documentHash.data = this._normalizeResourceHelper(documentHash.data); | |||
} else { | |||
} else if (Ember.typeOf(documentHash.data) === 'array') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wecc would you prefer a more readable way without the else if
, like we do in json-api-serializer/extractRelationship
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine
Edit: Hm, maybe should to into 👍 |
You mean a PR into the |
No, this is fine, against |
Gotcha. Done. |
[BUGFIX release] handle case where linked relationship data is null
Thanks @pangratz! |
This addresses #3451.