Skip to content

Commit de4650e

Browse files
committed
Merge remote-tracking branch 'origin/AC-6507' into Spartans_graphql_4April
2 parents 0b2ebe7 + 1cc7d68 commit de4650e

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 ($field->selectionSet && $field->selectionSet->selections) {
83+
} elseif (isset($field->selectionSet) && $field->selectionSet->selections) {
8484
$depth[] = $this->calculate($resolveInfo, $field);
8585
}
8686
}

0 commit comments

Comments
 (0)