Skip to content

Commit 9e9985c

Browse files
committed
Don't preserve empty anchor when transforming from Spacer block to Separator block
1 parent 047167c commit 9e9985c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/block-library/src/spacer/transforms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const transforms = {
1010
blocks: [ 'core/separator' ], // Transform to Separator.
1111
transform: ( { anchor } ) => {
1212
return createBlock( 'core/separator', {
13-
anchor: anchor || '',
13+
anchor: anchor || undefined,
1414
} );
1515
},
1616
},

0 commit comments

Comments
 (0)