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