From 61cf99402e91c80e91943047a5e9d04f839a34e0 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Thu, 8 Feb 2018 09:57:25 -0500 Subject: [PATCH] State: Avoid parameters in state selectors getDependants (#4939) --- editor/store/selectors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/store/selectors.js b/editor/store/selectors.js index 4b563f8bd6fcff..3362efb5b0a326 100644 --- a/editor/store/selectors.js +++ b/editor/store/selectors.js @@ -434,8 +434,8 @@ export const getBlock = createSelector( innerBlocks: getBlocks( state, uid ), }; }, - ( state, uid ) => [ - get( state, [ 'editor', 'present', 'blocksByUid', uid ] ), + ( state ) => [ + get( state, [ 'editor', 'present', 'blocksByUid' ] ), get( state, [ 'editor', 'present', 'edits', 'meta' ] ), get( state, 'currentPost.meta' ), ]