Skip to content

Commit 43cee30

Browse files
author
Oleksandr Iegorov
committed
MC-42528: [GraphQl]Categories and categoryList queries ignore the Category permission to hide categories in a shared catalog
1 parent ed4bd85 commit 43cee30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ExtractDataFromCategoryTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private function sortTree(array $tree): array
157157
return $element1['position'] > $element2['position'];
158158
});
159159
$node['children'] = $this->sortTree($node['children']);
160-
if ($node['children_count']) {
160+
if (isset($node['children_count'])) {
161161
$node['children_count'] = count($node['children']);
162162
}
163163
}

0 commit comments

Comments
 (0)