Skip to content

Commit

Permalink
Fix error with react list key with new custom patterns list in inserter
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz authored and talldan committed Jun 28, 2023
1 parent c711e2a commit e75b15c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ function BlockPatternList( {
const isShown = shownPatterns.includes( pattern );
return isShown ? (
<BlockPattern
key={ pattern.name }
key={
pattern.name === 'core/block'
? pattern.id
: pattern.name
}
pattern={ pattern }
onClick={ onClickPattern }
onHover={ onHover }
Expand Down

0 comments on commit e75b15c

Please sign in to comment.