Skip to content

Commit

Permalink
Use EMPTY_ARRAY as a shared reference
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Apr 3, 2020
1 parent 05dbcbe commit ed7cbc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const getBlock = createSelector(
...block,
attributes: getBlockAttributes( state, clientId ),
innerBlocks: areInnerBlocksControlled( state, clientId )
? []
? EMPTY_ARRAY
: getBlocks( state, clientId ),
};
},
Expand Down

0 comments on commit ed7cbc4

Please sign in to comment.