Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parentNode issues on PUT DELETE and UPDATE #84

Open
jasonkneen opened this issue Mar 23, 2017 · 0 comments
Open

parentNode issues on PUT DELETE and UPDATE #84

jasonkneen opened this issue Mar 23, 2017 · 0 comments

Comments

@jasonkneen
Copy link
Collaborator

jasonkneen commented Mar 23, 2017

If you have parentNode set for GET then you get errors on using PUT, DELETE, UPDATE etc if the returning JSON doesn't include that node.

Current workaround is doing this in the model config:

parentNode: function(data) {
    data = data || [];
    return data.tasks || data;
}

which will get around the issue and just pass back the data returned -- will look at how that could be integrated into the adapter.

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

No branches or pull requests

1 participant