Skip to content

Conversation

@chieffancypants
Copy link
Contributor

When I delete a resource, angular-data is also removing references to/from unrelated resources during _unlinkInverse. In these cases, index was undefined, which is effectively treated as 0 by splice and would remove an unrelated item.

jmdobry added a commit that referenced this pull request Sep 26, 2014
unlinkInverse: avoid splicing when index is undefined
@jmdobry jmdobry merged commit 3b5f589 into js-data:master Sep 26, 2014
@jmdobry
Copy link
Member

jmdobry commented Sep 26, 2014

Oops, I forgot to check that an index had been found. Merged.

@chieffancypants chieffancypants deleted the unlinkInverse-bug branch September 26, 2014 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants