We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 169d5e0 commit b512f51Copy full SHA for b512f51
addon/-private/system/relationships/state/belongs-to.js
@@ -33,8 +33,8 @@ BelongsToRelationship.prototype.setRecord = function(newRecord) {
33
BelongsToRelationship.prototype.setCanonicalRecord = function(newRecord) {
34
if (newRecord) {
35
this.addCanonicalRecord(newRecord);
36
- } else if (this.inverseRecord) {
37
- this.removeCanonicalRecord(this.inverseRecord);
+ } else if (this.canonicalState) {
+ this.removeCanonicalRecord(this.canonicalState);
38
}
39
this.setHasData(true);
40
this.setHasLoaded(true);
0 commit comments