Commit 42f31993 authored by Tim Zallmann's avatar Tim Zallmann

Updated Description of the issue according to discussions in the CE MR

parent da15ef7e
...@@ -39,7 +39,6 @@ export default class GroupsStore { ...@@ -39,7 +39,6 @@ export default class GroupsStore {
this.state.pageInfo = paginationInfo; this.state.pageInfo = paginationInfo;
} }
// Here be dragons
buildTree(rawGroups, parentGroup) { buildTree(rawGroups, parentGroup) {
const groups = this.decorateGroups(rawGroups); const groups = this.decorateGroups(rawGroups);
const tree = {}; const tree = {};
...@@ -69,8 +68,7 @@ export default class GroupsStore { ...@@ -69,8 +68,7 @@ export default class GroupsStore {
// e.g. If this group is `one / two / three` we are going to put it inside `one` // e.g. If this group is `one / two / three` we are going to put it inside `one`
orphans.push(currentGroup); orphans.push(currentGroup);
// Add // Add to tree to preserve original order
// Lo metemos a tree para conservar el orden original
tree[`id${currentGroup.id}`] = currentGroup; tree[`id${currentGroup.id}`] = currentGroup;
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment