From 234bcddbb0634a42cf56cbc89b5dc27701178883 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 10 Dec 2024 14:42:55 +0100 Subject: [PATCH] Avoid special case for root block --- .../block-editor/src/components/inserter/block-types-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/inserter/block-types-tab.js b/packages/block-editor/src/components/inserter/block-types-tab.js index 844d5dd341437e..d37a6ca5694b09 100644 --- a/packages/block-editor/src/components/inserter/block-types-tab.js +++ b/packages/block-editor/src/components/inserter/block-types-tab.js @@ -186,7 +186,7 @@ export function BlockTypesTab( continue; } - if ( rootClientId && item.isAllowedInCurrentRoot ) { + if ( item.isAllowedInCurrentRoot ) { itemsForCurrentRoot.push( item ); } else { itemsRemaining.push( item );