Skip to content
Snippets Groups Projects
Commit 2b91b9be authored by Eugen Ciur's avatar Eugen Ciur
Browse files

include children data in single request

parent 34c68e58
Branches
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ export default class NodeAdapter extends ApplicationAdapter {
url = this.buildURL('nodes', node_id);
return this.ajax(url, 'GET').then((node) => {
return this.ajax(url, 'GET', {data: {include: 'children'}}).then((node) => {
this.store.pushPayload('folder', node);
ret = this.store.peekRecord('folder', node.data.id);
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment