Skip to content

Commit

Permalink
GraphQL-527: Category Tree Contains null Leaves
Browse files Browse the repository at this point in the history
  • Loading branch information
naydav committed Mar 25, 2019
1 parent 1482709 commit b948b62
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ public function calculate(FieldNode $fieldNode) : int
$depth = count($selections) ? 1 : 0;
$childrenDepth = [0];
foreach ($selections as $node) {
if ($node->kind === 'InlineFragment'
|| null !== $node->alias
if (
$node->kind === 'InlineFragment'
|| null !== $node->alias
) {
continue;
}
Expand Down

0 comments on commit b948b62

Please sign in to comment.