File tree 4 files changed +12
-22
lines changed
4 files changed +12
-22
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,7 @@ import { useSelect } from '@wordpress/data';
30
30
import { __ , sprintf } from '@wordpress/i18n' ;
31
31
import { pullLeft , pullRight } from '@wordpress/icons' ;
32
32
33
- import {
34
- toNumber ,
35
- getMediaType ,
36
- isVideoType ,
37
- cleanEmptyObject ,
38
- } from '@smb/helper' ;
33
+ import { toNumber , getMediaType , isVideoType } from '@smb/helper' ;
39
34
40
35
import Figure from '@smb/component/figure' ;
41
36
import ResolutionTool from '@smb/component/resolution-tool' ;
@@ -1420,9 +1415,9 @@ export default function ( {
1420
1415
: value ?. left ;
1421
1416
1422
1417
setAttributes ( {
1423
- backgroundText : cleanEmptyObject ( {
1418
+ backgroundText : {
1424
1419
...newBackgroundText ,
1425
- } ) ,
1420
+ } ,
1426
1421
} ) ;
1427
1422
} ,
1428
1423
defaultValue :
Original file line number Diff line number Diff line change @@ -31,12 +31,7 @@ import ResponsiveTabPanel from '@smb/component/responsive-tab-panel';
31
31
import Figure from '@smb/component/figure' ;
32
32
import ResolutionTool from '@smb/component/resolution-tool' ;
33
33
34
- import {
35
- toNumber ,
36
- getMediaType ,
37
- isVideoType ,
38
- cleanEmptyObject ,
39
- } from '@smb/helper' ;
34
+ import { toNumber , getMediaType , isVideoType } from '@smb/helper' ;
40
35
41
36
import { PanelBasicSettings } from '../section/components/basic' ;
42
37
import { Edit as Header } from '../section/components/header' ;
@@ -1204,9 +1199,9 @@ export default function ( {
1204
1199
: value ?. left ;
1205
1200
1206
1201
setAttributes ( {
1207
- backgroundText : cleanEmptyObject ( {
1202
+ backgroundText : {
1208
1203
...newBackgroundText ,
1209
- } ) ,
1204
+ } ,
1210
1205
} ) ;
1211
1206
} ,
1212
1207
defaultValue :
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import {
26
26
import { useSelect } from '@wordpress/data' ;
27
27
import { __ } from '@wordpress/i18n' ;
28
28
29
- import { toNumber , cleanEmptyObject } from '@smb/helper' ;
29
+ import { toNumber } from '@smb/helper' ;
30
30
31
31
import { PanelBasicSettings } from '../section/components/basic' ;
32
32
import { Edit as Header } from '../section/components/header' ;
@@ -531,9 +531,9 @@ export default function ( {
531
531
: value ?. left ;
532
532
533
533
setAttributes ( {
534
- backgroundText : cleanEmptyObject ( {
534
+ backgroundText : {
535
535
...newBackgroundText ,
536
- } ) ,
536
+ } ,
537
537
} ) ;
538
538
} ,
539
539
defaultValue :
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
17
17
import { useSelect } from '@wordpress/data' ;
18
18
import { __ } from '@wordpress/i18n' ;
19
19
20
- import { toNumber , cleanEmptyObject } from '@smb/helper' ;
20
+ import { toNumber } from '@smb/helper' ;
21
21
22
22
import { PanelBasicSettings } from './components/basic' ;
23
23
import { Edit as Header } from './components/header' ;
@@ -555,9 +555,9 @@ export default function ( {
555
555
: value ?. left ;
556
556
557
557
setAttributes ( {
558
- backgroundText : cleanEmptyObject ( {
558
+ backgroundText : {
559
559
...newBackgroundText ,
560
- } ) ,
560
+ } ,
561
561
} ) ;
562
562
} ,
563
563
defaultValue :
You can’t perform that action at this time.
0 commit comments