Skip to content

Commit

Permalink
Block Editor: Fix ESLint warning for in BlockListBlock component (#60064
Browse files Browse the repository at this point in the history
)


Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
  • Loading branch information
3 people committed Mar 22, 2024
1 parent d1c8e3a commit 4f239fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-editor/src/components/block-list/block.js
Expand Up @@ -112,7 +112,10 @@ function BlockListBlock( {
...context
} = useContext( PrivateBlockContext );
const { removeBlock } = useDispatch( blockEditorStore );
const onRemove = useCallback( () => removeBlock( clientId ), [ clientId ] );
const onRemove = useCallback(
() => removeBlock( clientId ),
[ clientId, removeBlock ]
);

const parentLayout = useLayout() || {};

Expand Down

0 comments on commit 4f239fd

Please sign in to comment.