Skip to content

Commit

Permalink
fix: empty content sidebar panel (#64569)
Browse files Browse the repository at this point in the history
Co-authored-by: shreya0204 <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: hanneslsm <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: carolinan <[email protected]>
  • Loading branch information
8 people authored Aug 17, 2024
1 parent 898448a commit 633236b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ export default function TemplateContentPanel() {

const { enableComplementaryArea } = useDispatch( interfaceStore );

if ( renderingMode === 'post-only' && postType !== TEMPLATE_POST_TYPE ) {
if (
( renderingMode === 'post-only' && postType !== TEMPLATE_POST_TYPE ) ||
clientIds.length === 0
) {
return null;
}

Expand Down

1 comment on commit 633236b

@github-actions
Copy link

Choose a reason for hiding this comment

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

Flaky tests detected in 633236b.
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/10431534015
📝 Reported issues:

Please sign in to comment.