From 30239dc59990c0a0bb4353a43ceada34e5fba518 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Tue, 4 Aug 2020 17:37:59 +1000 Subject: [PATCH] Remove unnecessary dispatch --- packages/edit-post/src/components/options-modal/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/edit-post/src/components/options-modal/index.js b/packages/edit-post/src/components/options-modal/index.js index f7e60fe4930254..0a983af5709c48 100644 --- a/packages/edit-post/src/components/options-modal/index.js +++ b/packages/edit-post/src/components/options-modal/index.js @@ -129,8 +129,6 @@ export default compose( withDispatch( ( dispatch ) => { return { closeModal: () => dispatch( 'core/edit-post' ).closeModal(), - toggleIconLabels: () => - dispatch( 'core/edit-post' ).toggleFeature( 'showIconLabels' ), }; } ) )( OptionsModal );