Skip to content

Commit 1b05a1b

Browse files
authored
Merge pull request #360 from magento/magento-mpi-MC-30156
[Support] MC-30156: Fix return value of Magento\PageBuilder\Model\Stage\Preview::isPreviewMode() must be of the type boolean, null returned
2 parents 595fc30 + 0ae2ad8 commit 1b05a1b

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)