- Notifications
You must be signed in to change notification settings - Fork77
Closed
Description
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