diff --git a/packages/block-editor/src/store/selectors.js b/packages/block-editor/src/store/selectors.js index 33afc046f3ecf..2f73e50b602d2 100644 --- a/packages/block-editor/src/store/selectors.js +++ b/packages/block-editor/src/store/selectors.js @@ -2297,7 +2297,7 @@ function getUserPatterns( state ) { const userPatternCategories = state?.settings?.__experimentalUserPatternCategories ?? []; const categories = new Map(); - userPatternCategories?forEach( ( userCategory ) => + userPatternCategories.forEach( ( userCategory ) => categories.set( userCategory.id, userCategory ) ); return userPatterns.map( ( userPattern ) => {