Skip to content

Commit

Permalink
use empty string as default value for title (#30208)
Browse files Browse the repository at this point in the history
  • Loading branch information
Addison-Stavlo authored Mar 26, 2021
1 parent 7e75f51 commit c154261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-title/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function PostTitleEdit( {
return null;
}

const { title, link } = post;
const { title = '', link } = post;

let titleElement = (
<TagName { ...( isLink ? {} : blockProps ) }>
Expand Down

0 comments on commit c154261

Please sign in to comment.