Skip to content

Commit ce3f143

Browse files
committed
ACP2E-1172: categoryList Graphql request show 0 product count
1 parent d50b21d commit ce3f143

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Category/ProductsCount.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
7171
}
7272
/** @var Category $category */
7373
$category = $value['model'];
74-
$category->setIsAnchor($category->getIsAnchor() ?? $this->categoryRepository->get($value['id'])->getIsAnchor());
75-
7674
$productsCollection = $category->getProductCollection();
7775
$productsCollection->setVisibility($this->catalogProductVisibility->getVisibleInSiteIds());
7876
$productsCollection = $this->collectionProcessor->process(

0 commit comments

Comments
 (0)