From 8ce68777904c4bb8a79162dae9121f51d820a5c8 Mon Sep 17 00:00:00 2001 From: Shreya Agarwal Date: Tue, 13 Aug 2024 17:39:01 +0530 Subject: [PATCH] fix: fix empty content sidebar panel --- .../editor/src/components/template-content-panel/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/editor/src/components/template-content-panel/index.js b/packages/editor/src/components/template-content-panel/index.js index af9721dfdf2b32..41e170e76daef5 100644 --- a/packages/editor/src/components/template-content-panel/index.js +++ b/packages/editor/src/components/template-content-panel/index.js @@ -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; }