Skip to content

Commit

Permalink
Small tweak about JS var scoping
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Dec 21, 2018
1 parent 8d1d51f commit 097baba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/blocks/src/api/serializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,11 @@ export function serializeBlock( block ) {
case getUnregisteredTypeHandlerName():
return saveContent;

default:
default: {
const blockType = getBlockType( blockName );
const saveAttributes = getCommentAttributes( blockType, block.attributes );
return getCommentDelimitedContent( blockName, saveAttributes, saveContent );
}
}
}

Expand Down

0 comments on commit 097baba

Please sign in to comment.