Skip to content

Commit

Permalink
Post Editor: Update postContentBlock check to see if the block is val…
Browse files Browse the repository at this point in the history
…id (#48386)
  • Loading branch information
andrewserong authored Feb 23, 2023
1 parent ff76ca2 commit 5dbd698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-post/src/components/visual-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export default function VisualEditor( { styles } ) {

// If there is a Post Content block we use its layout for the block list;
// if not, this must be a classic theme, in which case we use the fallback layout.
const blockListLayout = postContentBlock
const blockListLayout = postContentBlock?.isValid
? postContentLayout
: fallbackLayout;

Expand Down

1 comment on commit 5dbd698

@github-actions
Copy link

@github-actions github-actions bot commented on 5dbd698 Feb 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 5dbd698.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4257834495
📝 Reported issues:

Please sign in to comment.