Skip to content

Commit

Permalink
fix: Fix empty page layout
Browse files Browse the repository at this point in the history
  • Loading branch information
kpitn committed May 19, 2021
1 parent abd08cb commit 48bfcb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Plugin/AddCategoryCanonical.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ public function afterExecute(View $subject, $page)
return $page;
}

if (!$page->getLayout()) {
return $page;
}

/** @var ListProduct $productListBlock */
$productListBlock = $page->getLayout()->getBlock('category.products.list');

Expand Down

0 comments on commit 48bfcb7

Please sign in to comment.