Skip to content

Commit 11494ed

Browse files
committed
Revert "AC-6507 : GraphQL Routes query with fragments has issue in the category page"
This reverts commit 1cc7d68.
1 parent 9bdb36f commit 11494ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private function addInlineFragmentDepth(
8080
foreach ($selections as $field) {
8181
if ($field->kind === NodeKind::INLINE_FRAGMENT) {
8282
$depth[] = $this->addInlineFragmentDepth($resolveInfo, $field, $depth);
83-
} elseif (isset($field->selectionSet) && $field->selectionSet->selections) {
83+
} elseif ($field->selectionSet && $field->selectionSet->selections) {
8484
$depth[] = $this->calculate($resolveInfo, $field);
8585
}
8686
}

0 commit comments

Comments
 (0)