Skip to content

Commit bb5ae76

Browse files
committed
Product media_gallery_entries / types only present if image, thumbnail, small_image is requested
1 parent 211dd25 commit bb5ae76

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getList(
7474
): SearchResultsInterface {
7575
/** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $collection */
7676
$collection = $this->collectionFactory->create();
77-
77+
$attributes = array_unique(array_merge($attributes, ['small_image', 'thumbnail', 'image']));
7878
$this->collectionProcessor->process($collection, $searchCriteria, $attributes);
7979

8080
if (!$isChildSearch) {

0 commit comments

Comments
 (0)