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
I've updated to 1.0.0 and now have an issue similar to #188. Now it's failing when the array has multiple items.
This plunker demonstrates the issue (it's a fork of the 188 issue plunker so I hope I haven't buggered it up.) http://plnkr.co/edit/S0z9v3ubnrzY53xh9nSJ?p=preview
Patching at line 5443 to the following seems to fix it:
if (definition.relations) {
// evil hacky if/elsey fix.
if (Array.isArray(injected)) {
for (var i = 0; i < injected.length; i++) {
_injectRelations.call(DS, definition, injected[i]);
}
} else {
// was just calling this.
_injectRelations.call(DS, definition, injected);
}
}
The text was updated successfully, but these errors were encountered:
Your plunker is using angular-data 0.10.5 (the version is in the banner at the top of each file). If I paste in the file linked to below then it works.
You can see in dist/angular-data.js#L6517 for 1.0.0 that this is fixed (_injectRelations is only called on single items).
I've updated to 1.0.0 and now have an issue similar to #188. Now it's failing when the array has multiple items.
This plunker demonstrates the issue (it's a fork of the 188 issue plunker so I hope I haven't buggered it up.)
http://plnkr.co/edit/S0z9v3ubnrzY53xh9nSJ?p=preview
Patching at line 5443 to the following seems to fix it:
The text was updated successfully, but these errors were encountered: