Skip to content

Commit 0ae2ad8

Browse files
committed
MC-30156: [Magento Cloud] - Indexer Error happens after appled a patch
- Fix return value of Magento\PageBuilder\Model\Stage\Preview::isPreviewMode() must be of the type boolean, null returned
1 parent 92f7a4a commit 0ae2ad8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/PageBuilder/Model/Stage/Preview.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ class Preview
4242
*/
4343
private $scopeConfig;
4444

45+
/**
46+
* @var bool
47+
*/
48+
private $isPreview = false;
49+
4550
/**
4651
* Preview constructor.
4752
* @param \Magento\Store\Model\App\Emulation $emulation
@@ -67,11 +72,6 @@ public function __construct(
6772
$this->scopeConfig = $scopeConfig;
6873
}
6974

70-
/**
71-
* @var bool
72-
*/
73-
private $isPreview;
74-
7575
/**
7676
* Retrieve the area in which the preview needs to be ran in
7777
*

0 commit comments

Comments
 (0)