We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b948b62 commit 8ab95cfCopy full SHA for 8ab95cf
app/code/Magento/CatalogGraphQl/Model/Category/DepthCalculator.php
@@ -26,10 +26,7 @@ public function calculate(FieldNode $fieldNode) : int
26
$depth = count($selections) ? 1 : 0;
27
$childrenDepth = [0];
28
foreach ($selections as $node) {
29
- if (
30
- $node->kind === 'InlineFragment'
31
- || null !== $node->alias
32
- ) {
+ if ($node->kind === 'InlineFragment' || null !== $node->alias) {
33
continue;
34
}
35
0 commit comments