Skip to content

Commit

Permalink
Fix: Page patterns don't show when only one pattern is available. (#4…
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored and gziolo committed May 2, 2022
1 parent 1fdd475 commit 97575cc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/edit-post/src/components/start-page-options/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ function PatternSelection( { onChoosePattern } ) {
}, [] );
const shownBlockPatterns = useAsyncList( blockPatterns );
const { resetEditorBlocks } = useDispatch( editorStore );
useEffect( () => {
if ( blockPatterns.length <= 1 ) {
onChoosePattern();
}
}, [ blockPatterns.length ] );
return (
<BlockPatternsList
blockPatterns={ blockPatterns }
Expand Down

0 comments on commit 97575cc

Please sign in to comment.