Skip to content

Commit

Permalink
Cleanup blockGap resetAllFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Sep 3, 2021
1 parent 31dff94 commit f058696
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/block-editor/src/hooks/dimensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,7 @@ export function DimensionsPanel( props ) {
hasValue={ () => hasGapValue( props ) }
label={ __( 'Block gap' ) }
onDeselect={ () => resetGap( props ) }
resetAllFilter={ ( newAttributes ) => ( {
...newAttributes,
style: {
...newAttributes.style,
spacing: {
...newAttributes.style?.spacing,
blockGap: undefined,
},
},
} ) }
resetAllFilter={ createResetAllFilter( 'blockGap' ) }
isShownByDefault={ defaultSpacingControls?.blockGap }
panelId={ props.clientId }
>
Expand Down

0 comments on commit f058696

Please sign in to comment.