Skip to content

Commit bef21ca

Browse files
ENGCOM-6030: Rest API, endpoint products-render-info and image generation #24810
2 parents c4d88d7 + 2cc482d commit bef21ca

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Ui/DataProvider/Product/Listing/Collector

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Ui/DataProvider/Product/Listing/Collector/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public function collect(ProductInterface $product, ProductRenderInterface $produ
107107
$images = [];
108108
/** @var ThemeInterface $currentTheme */
109109
$currentTheme = $this->design->getDesignTheme();
110+
$this->design->setDesignTheme($currentTheme);
110111

111112
foreach ($this->imageCodes as $imageCode) {
112113
/** @var ImageInterface $image */
@@ -135,7 +136,6 @@ public function collect(ProductInterface $product, ProductRenderInterface $produ
135136
$images[] = $image;
136137
}
137138

138-
$this->design->setDesignTheme($currentTheme);
139139
$productRender->setImages($images);
140140
}
141141

0 commit comments

Comments
 (0)