Skip to content

Commit

Permalink
Fix the category tree depth calculation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-ch committed Jun 30, 2018
1 parent f947cad commit 9116d82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
class CategoryTree
{
/**
* In depth we need to calculate only children nodes, so 2 first wrapped nodes should be ignored
* In depth we need to calculate only children nodes, so the first wrapped node should be ignored
*/
const DEPTH_OFFSET = 2;
const DEPTH_OFFSET = 1;

/**
* @var CollectionFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ public function testCategoriesTree()
children {
level
id
children {
id
}
}
}
}
Expand Down

0 comments on commit 9116d82

Please sign in to comment.