Fix including to-many relationships for V3 payloads
This commit is contained in:
parent
5a2c86697b
commit
4a62d4ac9c
|
@ -94,8 +94,8 @@ export default DS.JSONSerializer.extend({
|
|||
}
|
||||
};
|
||||
|
||||
if(Array.isArray(relationship)) {
|
||||
relationship.forEach(process);
|
||||
if(Array.isArray(relationship.data)) {
|
||||
relationship.data.forEach(process);
|
||||
} else if(relationship && relationship.data) {
|
||||
process(relationship.data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user