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 a9342c4 commit fb85e2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function usePatternDetails( postType, postId ) {
select( coreStore );
const userPatternCategories = getUserPatternCategories();
const categories = new Map();
userPatternCategories?.forEach( ( userCategory ) =>
userPatternCategories.forEach( ( userCategory ) =>
categories.set( userCategory.id, userCategory )
);

Expand Down

0 comments on commit fb85e2d

Please sign in to comment.