Skip to content

Commit

Permalink
Remove unnecessary dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Sep 1, 2020
1 parent 10f78c5 commit 30239dc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/edit-post/src/components/options-modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ export default compose(
withDispatch( ( dispatch ) => {
return {
closeModal: () => dispatch( 'core/edit-post' ).closeModal(),
toggleIconLabels: () =>
dispatch( 'core/edit-post' ).toggleFeature( 'showIconLabels' ),
};
} )
)( OptionsModal );

0 comments on commit 30239dc

Please sign in to comment.