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.
2 parents 0b2ebe7 + 1cc7d68 commit de4650eCopy full SHA for de4650e
app/code/Magento/CatalogGraphQl/Model/Category/DepthCalculator.php
@@ -80,7 +80,7 @@ private function addInlineFragmentDepth(
80
foreach ($selections as $field) {
81
if ($field->kind === NodeKind::INLINE_FRAGMENT) {
82
$depth[] = $this->addInlineFragmentDepth($resolveInfo, $field, $depth);
83
- } elseif ($field->selectionSet && $field->selectionSet->selections) {
+ } elseif (isset($field->selectionSet) && $field->selectionSet->selections) {
84
$depth[] = $this->calculate($resolveInfo, $field);
85
}
86
0 commit comments