diff --git a/blocks/store/actions.js b/blocks/store/actions.js index c743f81d47623a..dafdde6fb4b936 100644 --- a/blocks/store/actions.js +++ b/blocks/store/actions.js @@ -18,7 +18,7 @@ export function addBlockTypes( blockTypes ) { } /** - * Returns an action object used in signalling that block types have been added. + * Returns an action object used in signalling that block types have been implemented. * * @param {Array|Object} implementations Block types implementations. * diff --git a/blocks/store/selectors.js b/blocks/store/selectors.js index 903476144c38cc..de5b325bb48268 100644 --- a/blocks/store/selectors.js +++ b/blocks/store/selectors.js @@ -2,7 +2,7 @@ * External dependencies */ import createSelector from 'rememo'; -import { mapValues, compact } from 'lodash'; +import { mapValues, compact, get } from 'lodash'; /** * Returns all the available block types. @@ -40,7 +40,7 @@ export const getBlockType = createSelector( ...blockTypeDefinition, ...blockTypeImplementation, attributes: mapValues( blockTypeDefinition.attributes, ( attribute, key ) => { - const implementationAttribute = blockTypeImplementation.attributes ? blockTypeImplementation.attributes[ key ] : {}; + const implementationAttribute = get( blockTypeImplementation.attributes, [ key ], {} ); return { ...attribute, ...implementationAttribute,