@@ -75,7 +75,7 @@ class CustomizeField extends React.Component {
75
75
76
76
gridChange = new_grid => {
77
77
let { uiSchema } = this . props ;
78
- uiSchema = uiSchema . toJS ( ) ;
78
+ uiSchema = uiSchema ? uiSchema . toJS ( ) : { } ;
79
79
80
80
let { "ui:options" : uiOptions = { } , ...rest } = uiSchema ;
81
81
let { grid = { } , ...restUIOptions } = uiOptions ;
@@ -91,7 +91,7 @@ class CustomizeField extends React.Component {
91
91
92
92
gridColumnChange = new_gridColumn => {
93
93
let { uiSchema } = this . props ;
94
- uiSchema = uiSchema . toJS ( ) ;
94
+ uiSchema = uiSchema ? uiSchema . toJS ( ) : { } ;
95
95
96
96
let { "ui:options" : uiOptions = { } , ...rest } = uiSchema ;
97
97
let { grid = { } , ...restUIOptions } = uiOptions ;
@@ -112,7 +112,7 @@ class CustomizeField extends React.Component {
112
112
if ( SIZE_OPTIONS . indexOf ( newSize ) < 0 ) return ;
113
113
114
114
let { uiSchema } = this . props ;
115
- uiSchema = uiSchema . toJS ( ) ;
115
+ uiSchema = uiSchema ? uiSchema . toJS ( ) : { } ;
116
116
117
117
let { "ui:options" : uiOptions = { } , ...rest } = uiSchema ;
118
118
let { size, ...restUIOptions } = uiOptions ;
@@ -130,7 +130,7 @@ class CustomizeField extends React.Component {
130
130
if ( [ "center" , "start" , "end" ] . indexOf ( newAlign ) < 0 ) return ;
131
131
132
132
let { uiSchema } = this . props ;
133
- uiSchema = uiSchema . toJS ( ) ;
133
+ uiSchema = uiSchema ? uiSchema . toJS ( ) : { } ;
134
134
135
135
let { "ui:options" : uiOptions = { } , ...rest } = uiSchema ;
136
136
let { align, ...restUIOptions } = uiOptions ;
0 commit comments