You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try adding records to store which have hasOne relation and there are already related records in store - related records won't be linked to newly added records
Cause
The implementation of findExistingLinksFor is incorrect for hasOne relation:
Description
Environment
Steps to reproduce
try adding records to store which have
hasOne
relation and there are already related records in store - related records won't be linked to newly added recordsCause
The implementation of
findExistingLinksFor
is incorrect forhasOne
relation:js-data/src/Relation/HasOne.js
Line 5 in c068c4b
where it's being called like this:
js-data/src/Relation.js
Line 146 in 65a2a78
so, as it's seen - first argument should be a record, and second argument even never passed
to compare, this is the impl of this method for
hasMany
:js-data/src/Relation/HasMany.js
Line 43 in 17020d8
The text was updated successfully, but these errors were encountered: