Skip to content

Commit b948b62

Browse files
committed
GraphQL-527: Category Tree Contains null Leaves
1 parent 1482709 commit b948b62

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/CatalogGraphQl/Model/Category/DepthCalculator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ public function calculate(FieldNode $fieldNode) : int
2626
$depth = count($selections) ? 1 : 0;
2727
$childrenDepth = [0];
2828
foreach ($selections as $node) {
29-
if ($node->kind === 'InlineFragment'
30-
|| null !== $node->alias
29+
if (
30+
$node->kind === 'InlineFragment'
31+
|| null !== $node->alias
3132
) {
3233
continue;
3334
}

0 commit comments

Comments
 (0)