@@ -239,6 +239,7 @@ class CustomizeField extends React.Component {
239
239
onClick = { ( ) => this . gridColumnChange ( gridColumns ) }
240
240
style = { {
241
241
border :
242
+ this . props . uiSchema &&
242
243
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
243
244
this . props . uiSchema . toJS ( ) [ "ui:options" ] . grid &&
244
245
gridColumns ===
@@ -247,6 +248,7 @@ class CustomizeField extends React.Component {
247
248
? "1px solid black"
248
249
: null ,
249
250
background :
251
+ this . props . uiSchema &&
250
252
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
251
253
this . props . uiSchema . toJS ( ) [ "ui:options" ] . grid &&
252
254
gridColumns ===
@@ -255,6 +257,7 @@ class CustomizeField extends React.Component {
255
257
? "black"
256
258
: null ,
257
259
color :
260
+ this . props . uiSchema &&
258
261
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
259
262
this . props . uiSchema . toJS ( ) [ "ui:options" ] . grid &&
260
263
gridColumns ===
@@ -263,6 +266,7 @@ class CustomizeField extends React.Component {
263
266
? "white"
264
267
: null ,
265
268
padding :
269
+ this . props . uiSchema &&
266
270
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
267
271
this . props . uiSchema . toJS ( ) [ "ui:options" ] . grid &&
268
272
gridColumns ===
@@ -271,6 +275,7 @@ class CustomizeField extends React.Component {
271
275
? "0 2px"
272
276
: null ,
273
277
borderRadius :
278
+ this . props . uiSchema &&
274
279
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
275
280
this . props . uiSchema . toJS ( ) [ "ui:options" ] . grid &&
276
281
gridColumns ===
@@ -301,30 +306,35 @@ class CustomizeField extends React.Component {
301
306
onClick = { ( ) => this . sizeChange ( size ) }
302
307
style = { {
303
308
border :
309
+ this . props . uiSchema &&
304
310
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
305
311
this . props . uiSchema . toJS ( ) [ "ui:options" ] . size &&
306
312
size === this . props . uiSchema . toJS ( ) [ "ui:options" ] . size
307
313
? "1px solid black"
308
314
: null ,
309
315
background :
316
+ this . props . uiSchema &&
310
317
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
311
318
this . props . uiSchema . toJS ( ) [ "ui:options" ] . size &&
312
319
size === this . props . uiSchema . toJS ( ) [ "ui:options" ] . size
313
320
? "black"
314
321
: null ,
315
322
color :
323
+ this . props . uiSchema &&
316
324
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
317
325
this . props . uiSchema . toJS ( ) [ "ui:options" ] . size &&
318
326
size === this . props . uiSchema . toJS ( ) [ "ui:options" ] . size
319
327
? "white"
320
328
: null ,
321
329
padding :
330
+ this . props . uiSchema &&
322
331
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
323
332
this . props . uiSchema . toJS ( ) [ "ui:options" ] . size &&
324
333
size === this . props . uiSchema . toJS ( ) [ "ui:options" ] . size
325
334
? "0 2px"
326
335
: null ,
327
336
borderRadius :
337
+ this . props . uiSchema &&
328
338
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
329
339
this . props . uiSchema . toJS ( ) [ "ui:options" ] . size &&
330
340
size === this . props . uiSchema . toJS ( ) [ "ui:options" ] . size
@@ -353,30 +363,35 @@ class CustomizeField extends React.Component {
353
363
onClick = { ( ) => this . alignChange ( align ) }
354
364
style = { {
355
365
border :
366
+ this . props . uiSchema &&
356
367
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
357
368
this . props . uiSchema . toJS ( ) [ "ui:options" ] . align &&
358
369
align === this . props . uiSchema . toJS ( ) [ "ui:options" ] . align
359
370
? "1px solid black"
360
371
: null ,
361
372
background :
373
+ this . props . uiSchema &&
362
374
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
363
375
this . props . uiSchema . toJS ( ) [ "ui:options" ] . align &&
364
376
align === this . props . uiSchema . toJS ( ) [ "ui:options" ] . align
365
377
? "black"
366
378
: null ,
367
379
color :
380
+ this . props . uiSchema &&
368
381
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
369
382
this . props . uiSchema . toJS ( ) [ "ui:options" ] . align &&
370
383
align === this . props . uiSchema . toJS ( ) [ "ui:options" ] . align
371
384
? "white"
372
385
: null ,
373
386
padding :
387
+ this . props . uiSchema &&
374
388
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
375
389
this . props . uiSchema . toJS ( ) [ "ui:options" ] . align &&
376
390
align === this . props . uiSchema . toJS ( ) [ "ui:options" ] . align
377
391
? "0 2px"
378
392
: null ,
379
393
borderRadius :
394
+ this . props . uiSchema &&
380
395
this . props . uiSchema . toJS ( ) [ "ui:options" ] &&
381
396
this . props . uiSchema . toJS ( ) [ "ui:options" ] . align &&
382
397
align === this . props . uiSchema . toJS ( ) [ "ui:options" ] . align
0 commit comments