File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,9 @@ define([
39
39
initialize : function ( ) {
40
40
this . _super ( ) ;
41
41
42
- switch ( true ) {
43
- case ! this . wysiwygConfigData ( ) [ 'pagebuilder_button' ] :
44
- case this . wysiwygConfigData ( ) [ 'pagebuilder_content_snapshot' ] :
45
- this . initPageBuilder ( ) ;
46
- break ;
42
+ if ( ! this . wysiwygConfigData ( ) [ 'pagebuilder_button' ] ||
43
+ this . wysiwygConfigData ( ) [ 'pagebuilder_content_snapshot' ] ) {
44
+ this . initPageBuilder ( ) ;
47
45
}
48
46
49
47
return this ;
@@ -95,11 +93,9 @@ define([
95
93
selector : this . stageSelector
96
94
} , this . disableDomObserver . bind ( this ) ) ;
97
95
98
- switch ( true ) {
99
- case ! this . wysiwygConfigData ( ) [ 'pagebuilder_button' ] :
100
- case this . wysiwygConfigData ( ) [ 'pagebuilder_content_snapshot' ] :
101
- this . visiblePageBuilder ( true ) ;
102
- break ;
96
+ if ( ! this . wysiwygConfigData ( ) [ 'pagebuilder_button' ] ||
97
+ this . wysiwygConfigData ( ) [ 'pagebuilder_content_snapshot' ] ) {
98
+ this . visiblePageBuilder ( true ) ;
103
99
}
104
100
}
105
101
} ,
You can’t perform that action at this time.
0 commit comments