diff --git a/packages/block-editor/src/components/inserter/block-patterns-tab.js b/packages/block-editor/src/components/inserter/block-patterns-tab.js index 3e0b9407543ab9..ea1332dc63d0d7 100644 --- a/packages/block-editor/src/components/inserter/block-patterns-tab.js +++ b/packages/block-editor/src/components/inserter/block-patterns-tab.js @@ -195,6 +195,7 @@ function BlockPatternsTabs( { } ) { const [ showPatternsExplorer, setShowPatternsExplorer ] = useState( false ); const categories = usePatternsCategories( rootClientId ); + const initialCategory = selectedCategory || categories[ 0 ]; const isMobile = useViewportMatch( 'medium', '<' ); return ( <> @@ -261,7 +262,7 @@ function BlockPatternsTabs( { ) } { showPatternsExplorer && ( setShowPatternsExplorer( false ) } />