Skip to content

Commit

Permalink
Try to fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Mar 13, 2024
1 parent 3d5b1e9 commit db6defd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/block-library/src/heading/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ export const settings = {
const { content, level } = attributes;

const customName = attributes?.metadata?.name;
const contentHTML = toHTMLString( { value: content } );
const contentHTML =
typeof content === 'string'
? content
: toHTMLString( {
value: content,
} );

// In the list view, use the block's content as the label.
// If the content is empty, fall back to the default label.
Expand Down

0 comments on commit db6defd

Please sign in to comment.