Skip to content

Commit

Permalink
Address feedback from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Apr 1, 2019
1 parent 80ac275 commit 98786ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const registerCoreBlocks = () => {
if ( ! block ) {
return;
}
const { metadata, settings, name = metadata.name } = block;
const { metadata, settings, name } = block;
if ( metadata ) {
unstable__bootstrapServerSideBlockDefinitions( { [ name ]: metadata } ); // eslint-disable-line camelcase
}
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/text-columns/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"source": "html"
}
},
"default": [ { }, { } ]
"default": [ {}, {} ]
},
"columns": {
"type": "number",
Expand Down
4 changes: 3 additions & 1 deletion packages/block-library/src/text-columns/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import deprecated from '@wordpress/deprecated';
*/
import metadata from './block.json';

export { metadata };
const { name } = metadata;

export { metadata, name };

export const settings = {
// Disable insertion as this block is deprecated and ultimately replaced by the Columns block.
Expand Down

0 comments on commit 98786ad

Please sign in to comment.