File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import './styles.less';
21
21
export const applyStyleWrapperToBlock = ( blockConfig ) => {
22
22
const BaseEditComponent = blockConfig . edit ;
23
23
let EditComponent = BaseEditComponent ;
24
- if ( ! EditComponent . _styleWrapped ) {
24
+ if ( EditComponent && ! EditComponent . _styleWrapped ) {
25
25
EditComponent = ( props ) => (
26
26
< BlockStyleWrapperEdit { ...props } >
27
27
< BaseEditComponent { ...props } />
@@ -33,7 +33,7 @@ export const applyStyleWrapperToBlock = (blockConfig) => {
33
33
34
34
const BaseViewComponent = blockConfig . view ;
35
35
let ViewComponent = BaseViewComponent ;
36
- if ( ! ViewComponent . _styleWrapped ) {
36
+ if ( ViewComponent && ! ViewComponent . _styleWrapped ) {
37
37
ViewComponent = ( props ) => (
38
38
< BlockStyleWrapperView { ...props } >
39
39
< BaseViewComponent { ...props } />
You can’t perform that action at this time.
0 commit comments