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
In the inject function - there is code to the effect of
if (options.linkInverse) {
if (DS.utils.isArray(injected) && injected.length) {
DS.linkInverse(definition.name, injected[0][definition.idAttribute]);
}
else {
DS.linkInverse(definition.name, injected[definition.idAttribute]);
}
}
In this scenario, the get returns an array - but its length is 0. Now the code attempts to look it up in the else clause as an object and throws exception
The text was updated successfully, but these errors were encountered:
In the inject function - there is code to the effect of
In this scenario, the get returns an array - but its length is 0. Now the code attempts to look it up in the else clause as an object and throws exception
The text was updated successfully, but these errors were encountered: