Skip to content

Commit

Permalink
Fixed error when themes are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
rommmka committed Jul 21, 2022
1 parent 3bd0fc8 commit 79c8f1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Plugin/Framework/LayoutMerge.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ private function getLayoutLinkIds()

$editor = $this->helper->getThemeEditorCode();
if ($editor) {
$this->layoutLinkIds = $this->collectLayoutLinkIds($this->helper->getConfigValue($editor));
$config = $this->helper->getConfigValue($editor);

if ($config) {
$this->layoutLinkIds = $this->collectLayoutLinkIds($config);
}
}

return $this->layoutLinkIds;
Expand Down

0 comments on commit 79c8f1c

Please sign in to comment.