Skip to content

Commit

Permalink
Quote Block: Fix serializing the quote block (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored May 1, 2017
1 parent d9172bf commit bbcb450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/library/quote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ registerBlock( 'core/quote', {
);
},

save( attributes ) {
save( { attributes } ) {
const { value, citation, style = 1 } = attributes;

return (
<blockquote className={ `blocks-quote-style-${ style }` }>
{ value && value.map( ( paragraph, i ) => (
{ value && wp.element.Children.map( value, ( paragraph, i ) => (
<p key={ i }>{ paragraph }</p>
) ) }
<footer>{ citation }</footer>
Expand Down

0 comments on commit bbcb450

Please sign in to comment.