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 ed4bd85 commit 43cee30Copy full SHA for 43cee30
app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ExtractDataFromCategoryTree.php
@@ -157,7 +157,7 @@ private function sortTree(array $tree): array
157
return $element1['position'] > $element2['position'];
158
});
159
$node['children'] = $this->sortTree($node['children']);
160
- if ($node['children_count']) {
+ if (isset($node['children_count'])) {
161
$node['children_count'] = count($node['children']);
162
}
163
0 commit comments