Skip to content

Commit

Permalink
Editor: Wrap invalid block preview with key
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Dec 18, 2017
1 parent f2bcebb commit 3650811
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/components/block-list/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ export class BlockListBlock extends Component {
<BlockHtml uid={ block.uid } />
) }
{ ! isValid && [
getSaveElement( blockType, block.attributes ),
<div key="invalid-preview">
{ getSaveElement( blockType, block.attributes ) }
</div>,
<InvalidBlockWarning
key="invalid-warning"
block={ block }
Expand Down

0 comments on commit 3650811

Please sign in to comment.