Skip to content

Commit

Permalink
Fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Feb 14, 2022
1 parent 56f4b01 commit 66ad596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/heading/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function HeadingEdit( {

// Remove anchor map when block unmounts.
return () => setAnchor( clientId, null );
}, [ content, anchor ] );
}, [ anchor, content, clientId, canGenerateAnchors ] );

const onContentChange = ( value ) => {
const newAttrs = { content: value };
Expand Down

0 comments on commit 66ad596

Please sign in to comment.