Skip to content

Commit

Permalink
Merge pull request #970 from magento-east/MAGETWO-66789
Browse files Browse the repository at this point in the history
MAGETWO-66789: [Backport] - [Performance] No empty image placeholder …
  • Loading branch information
Volodymyr Klymenko authored Mar 27, 2017
2 parents 5fffd63 + c06ae87 commit 7066534
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public function buildBlock($product, $displayArea)

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

$imageAsset = $this->viewAssetImageFactory->create(
[
Expand Down

0 comments on commit 7066534

Please sign in to comment.