Skip to content

Commit

Permalink
Framework: Simplify the block template format
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Nov 27, 2017
1 parent 53f7922 commit deb51e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export default {
if ( post.content.raw ) {
effects.push( resetBlocks( parse( post.content.raw ) ) );
} else if ( settings.template ) {
const blocks = map( settings.template.blocks, ( { name, attributes } ) => {
const blocks = map( settings.template, ( [ name, attributes ] ) => {
const block = createBlock( name );
block.attributes = {
...block.attributes,
Expand Down

0 comments on commit deb51e1

Please sign in to comment.