From ed7cbc4a9127aa86a4d662639af57fa0f397cc8f Mon Sep 17 00:00:00 2001 From: Noah Allen Date: Fri, 3 Apr 2020 15:27:44 -0700 Subject: [PATCH] Use EMPTY_ARRAY as a shared reference --- packages/block-editor/src/store/selectors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/store/selectors.js b/packages/block-editor/src/store/selectors.js index 8220e418a79f26..244fce9b62a4c9 100644 --- a/packages/block-editor/src/store/selectors.js +++ b/packages/block-editor/src/store/selectors.js @@ -153,7 +153,7 @@ export const getBlock = createSelector( ...block, attributes: getBlockAttributes( state, clientId ), innerBlocks: areInnerBlocksControlled( state, clientId ) - ? [] + ? EMPTY_ARRAY : getBlocks( state, clientId ), }; },