Skip to content

Commit 83ad78d

Browse files
committed
fix #852
1 parent 93d3b0c commit 83ad78d

File tree

4 files changed

+12
-22
lines changed

4 files changed

+12
-22
lines changed

Diff for: src/blocks/section-break-the-grid/edit.js

+3-8
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@ import { useSelect } from '@wordpress/data';
3030
import { __, sprintf } from '@wordpress/i18n';
3131
import { pullLeft, pullRight } from '@wordpress/icons';
3232

33-
import {
34-
toNumber,
35-
getMediaType,
36-
isVideoType,
37-
cleanEmptyObject,
38-
} from '@smb/helper';
33+
import { toNumber, getMediaType, isVideoType } from '@smb/helper';
3934

4035
import Figure from '@smb/component/figure';
4136
import ResolutionTool from '@smb/component/resolution-tool';
@@ -1420,9 +1415,9 @@ export default function ( {
14201415
: value?.left;
14211416

14221417
setAttributes( {
1423-
backgroundText: cleanEmptyObject( {
1418+
backgroundText: {
14241419
...newBackgroundText,
1425-
} ),
1420+
},
14261421
} );
14271422
},
14281423
defaultValue:

Diff for: src/blocks/section-with-bgimage/edit.js

+3-8
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ import ResponsiveTabPanel from '@smb/component/responsive-tab-panel';
3131
import Figure from '@smb/component/figure';
3232
import ResolutionTool from '@smb/component/resolution-tool';
3333

34-
import {
35-
toNumber,
36-
getMediaType,
37-
isVideoType,
38-
cleanEmptyObject,
39-
} from '@smb/helper';
34+
import { toNumber, getMediaType, isVideoType } from '@smb/helper';
4035

4136
import { PanelBasicSettings } from '../section/components/basic';
4237
import { Edit as Header } from '../section/components/header';
@@ -1204,9 +1199,9 @@ export default function ( {
12041199
: value?.left;
12051200

12061201
setAttributes( {
1207-
backgroundText: cleanEmptyObject( {
1202+
backgroundText: {
12081203
...newBackgroundText,
1209-
} ),
1204+
},
12101205
} );
12111206
},
12121207
defaultValue:

Diff for: src/blocks/section-with-bgvideo/edit.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
import { useSelect } from '@wordpress/data';
2727
import { __ } from '@wordpress/i18n';
2828

29-
import { toNumber, cleanEmptyObject } from '@smb/helper';
29+
import { toNumber } from '@smb/helper';
3030

3131
import { PanelBasicSettings } from '../section/components/basic';
3232
import { Edit as Header } from '../section/components/header';
@@ -531,9 +531,9 @@ export default function ( {
531531
: value?.left;
532532

533533
setAttributes( {
534-
backgroundText: cleanEmptyObject( {
534+
backgroundText: {
535535
...newBackgroundText,
536-
} ),
536+
},
537537
} );
538538
},
539539
defaultValue:

Diff for: src/blocks/section/edit.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
import { useSelect } from '@wordpress/data';
1818
import { __ } from '@wordpress/i18n';
1919

20-
import { toNumber, cleanEmptyObject } from '@smb/helper';
20+
import { toNumber } from '@smb/helper';
2121

2222
import { PanelBasicSettings } from './components/basic';
2323
import { Edit as Header } from './components/header';
@@ -555,9 +555,9 @@ export default function ( {
555555
: value?.left;
556556

557557
setAttributes( {
558-
backgroundText: cleanEmptyObject( {
558+
backgroundText: {
559559
...newBackgroundText,
560-
} ),
560+
},
561561
} );
562562
},
563563
defaultValue:

0 commit comments

Comments
 (0)