From 097babaed00da9d7b714edcd461196616a458c8f Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Fri, 21 Dec 2018 09:54:16 +0100 Subject: [PATCH] Small tweak about JS var scoping --- packages/blocks/src/api/serializer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/blocks/src/api/serializer.js b/packages/blocks/src/api/serializer.js index 2542378c09f90d..74219369a29171 100644 --- a/packages/blocks/src/api/serializer.js +++ b/packages/blocks/src/api/serializer.js @@ -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 ); + } } }