@cityads/ember-data-change-tracker 0.11.2 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ export const relationShipTransform = {
21
21
  hasMany: {
22
22
  serialize(model, key, options) {
23
23
  let relationship = model.hasMany(key).hasManyRelationship;
24
- let value = relationship.localState;
24
+ let value = relationship.state.hasReceivedData ? relationship.currentState: relationship.canonicalState;
25
25
  return value && value.map(item => modelTransform(item, options.polymorphic));
26
26
  },
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityads/ember-data-change-tracker",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "Track changes and rollback object attributes and relationships. Ember data 2.5+",
5
5
  "keywords": [
6
6
  "ember-addon",