Skip to content

Commit

Permalink
fix: empty content sidebar panel (WordPress#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 and bph committed Aug 31, 2024
1 parent 6eed555 commit 67d03d7
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

0 comments on commit 67d03d7

Please sign in to comment.