Skip to content

Commit

Permalink
Small changes per review
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 17, 2018
1 parent 2e88f72 commit 02b01dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blocks/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
4 changes: 2 additions & 2 deletions blocks/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 02b01dc

Please sign in to comment.