Skip to content

Commit

Permalink
Site Editor: Fix JS error in 6.6 when loading the frong page (#62837)
Browse files Browse the repository at this point in the history
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
Co-authored-by: dhrrob < dhrrob@git.wordpress.org>
  • Loading branch information
4 people committed Jun 25, 2024
1 parent 9dd5f8d commit 526ad4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/editor/src/components/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ function Editor( {
[ postType, postId, templateId ]
);

if ( ! post ) {
return null;
}

return (
<ExperimentalEditorProvider
post={ post }
Expand Down

0 comments on commit 526ad4f

Please sign in to comment.