Skip to content

Commit 7066534

Browse files
author
Volodymyr Klymenko
authored
Merge pull request #970 from magento-east/MAGETWO-66789
MAGETWO-66789: [Backport] - [Performance] No empty image placeholder …
2 parents 5fffd63 + c06ae87 commit 7066534

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/Block/Product/ImageBlockBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public function buildBlock($product, $displayArea)
106106

107107
$type = isset($imageArguments['type']) ? $imageArguments['type'] : null;
108108
$baseFilePath = $product->getData($type);
109+
$baseFilePath = $baseFilePath === 'no_selection' ? null : $baseFilePath;
109110

110111
$imageAsset = $this->viewAssetImageFactory->create(
111112
[

0 commit comments

Comments
 (0)