Skip to content

Commit

Permalink
Remove pointless optional chaining
Browse files Browse the repository at this point in the history
Co-authored-by: Kai Hao <[email protected]>
  • Loading branch information
glendaviesnz and kevin940726 authored Sep 19, 2023
1 parent e15693d commit a9342c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const selectUserPatterns = ( select, { search = '', syncStatus } = {} ) => {
const records = getEntityRecords( 'postType', PATTERN_TYPES.user, query );
const userPatternCategories = getUserPatternCategories();
const categories = new Map();
userPatternCategories?.forEach( ( userCategory ) =>
userPatternCategories.forEach( ( userCategory ) =>
categories.set( userCategory.id, userCategory )
);
let patterns = records
Expand Down

0 comments on commit a9342c4

Please sign in to comment.