Skip to content

Commit

Permalink
More block: Fix React warning when adding custom text
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed May 24, 2024
1 parent 92eeecb commit 52e3144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/more/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { getDefaultBlockName, createBlock } from '@wordpress/blocks';
const DEFAULT_TEXT = __( 'Read more' );

export default function MoreEdit( {
attributes: { customText, noTeaser },
attributes: { customText = '', noTeaser },
insertBlocksAfter,
setAttributes,
} ) {
Expand Down

0 comments on commit 52e3144

Please sign in to comment.