Skip to content

Commit

Permalink
Fix caption block requiring a key property.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruth Ogendi committed Jul 30, 2019
1 parent 3011c69 commit 2ea6dfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/containers/Blocks/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import uuid from 'uuid';
import { objectOf, arrayOf, func, shape, string, any } from 'prop-types';

const Blocks = ({ blocks, componentsToRender }) =>
Expand All @@ -19,7 +20,7 @@ const Blocks = ({ blocks, componentsToRender }) =>

return (
<Block
key={id}
key={id ? id : uuid()}
position={position}
type={type}
typeOfPreviousBlock={typeOfPreviousBlock}
Expand Down

0 comments on commit 2ea6dfb

Please sign in to comment.